Vous êtes sur la page 1sur 2

GRABADO EEPROM

1
0
1
1
0
1 U30 0
0 8
7
A0 D0
9
10
0
A1 D1
0 6
5
A2 D2
11
13
1
A3 D3
4 14
0 3
A4
A5
D4
D5
15
2 16
A6 D6
1 17
A7 D7
23
A8
22
A9

11

11
19

8
A10
18 1 4 10 13 1 4 10 13
0 20
CE
OE
21
WE

12

12
6116

1
1

0
U33:A
1 2

74LS04

1
0
1 0
0 0
0 0
U2
0 8
A0 D0
9 0
7 10
0 6
A1
A2
D1
D2
11 0
5 13
0 4
A3
A4
D3
D4
14 0
3 15
0 2
A5
A6
D5
D6
16
1 17
A7 D7
23
A8
18
16
14
12

22
9
7
5
3

A9
19
A10
U1:B
Y0
Y1
Y2
Y3

Y0
Y1
Y2
Y3

18
0 20
CE
OE
74LS244
21
WE
OE

OE
A0
A1
A2
A3

A0
A1
A2
A3

6116

1
2
4
6
8

11
13
15
17

19

U3:A
1 2

74LS04
1
0
0
0
0
0
0
1

B2)

LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY RAM64X8 IS
PORT(DIR : IN STD_LOGIC_VECTOR(5 DOWNTO 0);
CS, RW : IN STD_LOGIC;
DATO : INOUT STD_LOGIC_VECTOR(7 DOWNTO 0));
END RAM64X8;
ARCHITECTURE FUNCION OF RAM64X8 IS
TYPE MEMORIA IS ARRAY(0 TO 3) OF STD_LOGIC_VECTOR(7 DOWNTO 0);
SIGNAL ram: MEMORIA;
BEGIN
PROCESS()
BEGIN
IF CS=’1’ THEN
IF RW=’0’ THEN
DATO<=ram(conv_integer(DIR));
END IF;
IF RW=’0’ THEN
ram(conv_integer(DIR))<=DATO;
END IF;
END IF;
END PROCESS;
END FUNCION;

Centres d'intérêt liés