Professional Documents
Culture Documents
Experiment1 and 2 - VLSI Design Lab Manual
Experiment1 and 2 - 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.
Experiment No. 2
Design of Multiplexer, De-multiplexer and Encoder using Verilog
Objective: The aim of the experiment is to write Verilog code to describe the functions of
4:1 Multiplexer, 1:4 De-multiplexer and 8x3 Priority Encoder.
Tool required: Xilinx ISE tool
Theory and Implementation:
a) 4:1 Multiplexer
b) 1:4 Demultiplexer
Simulation Waveforms
Simulation Waveforms
RESULT: 4:1 Multiplexer, 1:4 De-multiplexer and 8x3 Priority Encoder & 8:3 Encoder has
been realized and simulated using Verilog Code.