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