0
10.0kviews
Write VHDL Program for NAND gate.?
1 Answer
0
1.5kviews

Logic Operation – NAND Gate

enter image description here

X Y z
0 0 1
0 1 1
1 0 1
1 1 0

VHDL Code:

Library ieee; 
use ieee.std_logic_1164.all; 
entity nand1 is
port(a,b:in bit ; c:out bit); 
end nand1; 
architecture virat of nand1 is
begin
c<=a nand b; 
end virat;

Waveforms

enter image description here

Please log in to add an answer.