Xor Gate Beha - Modeling
Xor Gate Beha - Modeling
Xor Gate Beha - Modeling
library IEEE; use IEEE.STD_LOGIC_1164.ALL; ----------------------------------------------entity xor_1 is Port ( o, p : in STD_LOGIC; q : out STD_LOGIC); end xor_1; ----------------------------------------------architecture Behavioral_xor of xor_1 is begin ----------------process(o, p) begin if(p='0') then q<= o; else q<= not o; end if; end process; ----------------end Behavioral_xor; TRUTH TABLE: -
*\\ o and p are the input port to the and gate. *\\ q is output port to the and gate.
*\\ architecture of xor_1 entity begins. *\\ process (sensitivity list). After this statement all statement will be *\\ if (condition is true) then output (q) equal to o.
OUTPUT WAVEFORM: -
INFOOP2R.WIX.COM/OP2R