Professional Documents
Culture Documents
Gates 1
Gates 1
OR:- OR gate performs logical addition. It has two or more inputs and
single output. Its output is high even if one input is high. It is shown as:
Y=A+B.
DOC:-
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
--library UNISIM;
--use UNISIM.VComponents.all;
64/14
entity gate2 is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
c : out STD_LOGIC;
d : out STD_LOGIC;
e : out STD_LOGIC);
end gate2;
begin
c<=a and b;
d<=a or b;
e<=not (a);
end Behavioral;
64/14
SYNTAX:-
64/14
SCHEMATIC RTL:-
WAVEFORM:-
64/14
64/14