Lab3

advertisement
ES210, Digital Design Lab
Reporter Name:
Date:
Partner Names
Group No.:
Lab 3: Verilog
A. Objectives
1. Practice Verilog syntax.
2. Learn how to simulate a simple circuit.
B. Introduction
Verilog is a Hardware Description Language (HDL) that uses codes to describe and model digital circuits. Verilog allows
to simulate digital circuits and show the output versus input waveforms before building them on a breadboard. HDL is
necessary for simulation of integrated circuits since they can be very complex to put together on a breadboard.
C. Parts needed


A Computer capable to handle Verilog programs.
Your logbook with grid paper
C. Procedure
1. Draw a neat logic diagram of the digital circuit specified by the Verilog description below (textbook 3.36a).
module Circuit_A (A, B, C, D, F);
input A, B, C, D;
output F;
wire w, x, y, z, a, d;
and (x, B, C, d);
and (y, a ,C);
and (w, z ,B);
or (z, y, A);
or (F, x, w);
not (a, A);
not (d, D);
endmodule
2.
Draw a neat logic diagram of the digital circuit specified by the Verilog description below (textbook 3.36b).
module Circuit_(F1, F2, F3, A0, A1, B0, B1);
output F1, F2, F3;
input A0, A1, B0, B1;
nor (F2, F1, F3);
or (F1, w1, w2, w3);
and (F3, w4, w5);
and (w1, w6, B1);
and (w2, w6, w7, B0);
and (w3, w7, B0, B1);
not (w6, A1);
not (w7, A0);
xnor (w4, A1, B1);
xnor (w5, A0, B0);
endmodule
3.
Draw a neat logic diagram of the digital circuit specified by the Verilog description below (textbook 3.36c).
module Circuit C (y1, y2, y3, a, b);
output y1, y2, y3;
input a, b;
assign y1 = a || b;
and (y2, a, b);
assign y3 = a && b;
Dr. Ali Kujoory
6/30/2016
1
endmodule
Feedback/Comments (your comments will help improving this lab)
Was the instruction clear enough? Any error?
How difficult was it for you?
Do you have any observations to make?
D. Report
1. In your report, keep the title of the experiment, your & your partners’ names, and your group number. Include your
the tables of questions above and attach your diagrams on grid paper. Do not include the unnecessary parts such as
the objectives, instructions, and procedures.
2. Submit your report to the instructor at the end of the session.
Dr. Ali Kujoory
6/30/2016
2
Download