Content All
Content All
Lab Report on
“Electronics Circuits with Verilog Lab”
Submitted by
Samarth Kamat
(2JR21CS079)
It is certified that, the Seminar Report for “Electronics Circuits With Verilog Lab” is a
bonafide work satisfactorily completed by Samarth Kamat(2JR21CS079), in partial fulfilment
for the award of Bachelor of Engineering degree in Computer Science and Engineering of the
Visvesvaraya Technological University, Belagavi during the year 2023-2024.
3.Output
CONTENTS
1-6
Experiment no 1 11/05/2024
Experiment no 4 22/06/2024 12
Verilog code for decoder(2:4 decoder)
Experiment no 5 29/06/2024 13
Verilog code for 4 bit ripple carry adder
i
INTRODUCTION
Verilog supports a design at many levels of abstraction. The major three are −
Behavioral level
Register-transfer level
Gate level
Verilog was developed to simplify the process and make the HDL more robust and flexible.
Today, Verilog is the most popular HDL used and practiced throughout the semiconductor
industry.
HDL was developed to enhance the design process by allowing engineers to describe the
desired hardware's functionality and let automation tools convert that behavior into
actual hardware elements like combinational gates and sequential logic.
ii
Experiment no 1
AND Gate
Output:
1
NAND Gate
Output:
2
OR Gate
Output:
3
NOR Gate
Output:
4
XOR Gate
Output:
5
XNOR Gate
Output:
6
Experiment no 2
Output:
7
Full Adder
Output:
8
Full Subtractor
Output:
9
Experiment no 3
Output:
10
4:1 Multiplexer
Output:
11
Experiment no 4
2:4 Decoder
Output:
12
Experiment no 5
Output:
13
Experiment no 6
Output:
14
D Latch
Output:
15
D Flip Flop
Output:
16
S-R Flip Flop
Output:
17
J-K Flip Flop
nand $monitor($time,"s=%b,r=%b,clk=%b,q=%b,qbar=%b"
,j,k,clk,q,qbar);
(nand1_out,clk,j,qbar);
clk=1;
nand j=0;k=0;
(nand2_out,clk,r,k,q); #10 j=0;k=1;
nand (q,nand1_out,qbar); #10 j=1;k=0;
nand (qbar,nand2_out,q); #10 j=1;k=1;
#10 $finish();
endmodule end
endmodule
Output:
18
T Flip Flop
Output:
19