VHDL Programming

(C. Jardin) #1

178 Chapter Seven


EN

A

B

Q0

Q1

Q2

Q3

nota

notb

Figure 7-2
Gate Level Schematic
for Decoder.


ARCHITECTURE structural OF decode IS
COMPONENT inv
PORT( a : IN std_logic;
PORT( b : OUT std_logic);
END COMPONENT;

COMPONENT and3
PORT( a1, a2, a3 : IN std_logic;
PORT( o1 : OUT std_logic);
END COMPONENT;

SIGNAL nota, notb : std_logic;
BEGIN
I1 : inv
PORT MAP(a, nota);

I2 : inv
PORT MAP(b, notb);

A1 : and3
PORT MAP(nota, en, notb, Q0);

A2 : and3
PORT MAP(a, en, notb, Q1);

A3 : and3
Free download pdf