5
Experiment - 2
Date of Performance: Roll No. :
Aim : Study of Basic Gates.
Objective : Designing of Basic Gates Using a Data Flow Model.
Truth Table :
library ieee;
use ieee.std_logic_1164.all;
INPUT OUTPUT
entity basic is A B Y
port(A, B:in std_logic; 0 0 0
Y:out std_logic); 0 1 0
AND Gate : 1 0 0
end basic;
1 1 1
architecture df of basic is
Output Equation :
begin
Y <= A and B;
Y=A.B
end df;
library ieee; Truth Table :
use ieee.std_logic_1164.all;
INPUT OUTPUT
entity basic is A B Y
port(A, B:in std_logic; 0 0 0
Program : Y:out std_logic); 0 1 1
OR Gate : 1 0 1
end basic;
1 1 1
architecture df of basic is
Output Equation :
begin
Y <= A or B; Y=A+B
end df;
library ieee;
use ieee.std_logic_1164.all; Truth Table :
entity basic is INPUT OUTPUT
port(A:in std_logic; A Y
Y:out std_logic); 0 1
NOT Gate : 1 0
end basic;
architecture df of basic is Output Equation :
begin
Y = Ā
Y <= not A;
end df;
AND Gate :
Simulation
Result :
Department of Electronics and Telecommunication Engineering, ACET, Nagpur
6
OR Gate :
NOT Gate :
AND Gate :
y~0
a
y
b
OR Gate :
y~0
RTL View : a
y
b
NOT Gate :
Result /
All the Basic Gates are studied and implemented successfully using Quartus II 15.0 software
Conclusion :
Roll No. :
Marks out of
Signature :
Sem-Section 7th Sem. B 10
Date of
Name of Faculty : Sufiyan Khan
Submssion
Department of Electronics and Telecommunication Engineering, ACET, Nagpur