Experiment1 - VLSI Design Lab Manual
Experiment1 - VLSI Design Lab Manual
for
Presidency University
School of Engineering
Itagalpura, Rajanukunte, Yelahanka, Bangalore-560064
08-09-2022
Contents
Program
TITLE Page No.
No.
P4 Design of SR, JK, D & T Flip Flops and Counters using Verilog 15
Experiment No. 1
Design of Basic Logic Gates using Verilog
Objective: The aim of the experiment is to write verilog code for the basic logic Gate circuit
and observe the waveform.
Tool required: Xilinx ISE tool
Theory: Digital systems are said to be constructed by using logic gates. These gates are
the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates. The basic operations are
described below with the aid of truth tables
1. NOT Gate
2. And Gate
3. OR Gate
VERILOG CODE
module OR1(input a,b, output c);
assign c=a | b;
Endmodule
Simulation Waveforms
4. NAND Gate
VERILOG CODE
module nand1( input a,b, output c);
Simulation Waveforms
5. NOR Gate
VERILOG CODE
module nor1(input a,b, output c);
assign c=~(a | b);
endmodule
Simulation Waveforms
6. EX-OR Gate
VERILOG CODE
module xor1(input a,b, output c );
assign c= a ^ b;
endmodule
Simulation Waveforms
Result: The logic Gates Design have been realized and simulated using HDL codes.