NAND Gate Beh - Modeling
NAND Gate Beh - Modeling
IEEE; use IEEE.STD_LOGIC_1164.ALL; ----------------------------------------------------------entity nand_1 is Port ( i, j : in STD_LOGIC; *\\ i and j are the input port to the and gate. k : out STD_LOGIC); *\\ k is output port to the and gate. end nand_1; -----------------------------------------------------------architecture Behavioural_nand of nand_1 is begin *\\ architecture of nand_1 entity begins. --------------process(i, j) *\\ process (sensitivity list). After this statement all statement will be executed in sequence. begin if (j='1') then *\\ if (condition is true then ) output (k) equal to not of i. k<= not i; else *\\ otherwise output (k) equal to 1. k<='1'; end if; end process; ----------------end Behavioural_nand; *\\ end the architecture. TRUTH TABLE: -
OUTPUT WAVEFORM: -
INFOOP2R.WIX.COM/OP2R