0% found this document useful (0 votes)
33 views5 pages

Gates 1

This document describes the design and implementation of basic logic gates in VHDL, including AND, OR, and NOT gates. It defines the purpose and truth tables of each gate type. The code provided implements an AND, OR, and NOT gate using the VHDL language in a gate2 entity with inputs a and b and outputs c, d, and e.

Uploaded by

Rajan Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views5 pages

Gates 1

This document describes the design and implementation of basic logic gates in VHDL, including AND, OR, and NOT gates. It defines the purpose and truth tables of each gate type. The code provided implements an AND, OR, and NOT gate using the VHDL language in a gate2 entity with inputs a and b and outputs c, d, and e.

Uploaded by

Rajan Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

AIM:- Design of basic gates: AND,OR,NOT.

APPARATUS:- Synthesis tool used: Xilinx, Simulator used: VHDL.

THEORY:- AND:-The AND gate gives logical multiplication output. It has


two or more inputs and one output. Its output is low even if one input
is low. It is shown as: Y=A.B

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.

NOT:- NOT gate performs logical inversion. It is also called inverter. It


has one input and one output. It converts one logic level into opposite
logic level.

DOC:-

library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

use IEEE.STD_LOGIC_ARITH.ALL;

use IEEE.STD_LOGIC_UNSIGNED.ALL;

---- Uncomment the following library declaration if instantiating

---- any Xilinx primitives in this code.

--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;

architecture Behavioral of gate2 is

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

You might also like