Lab 4
Lab 4
Sequential Circuits
1 Lab Tasks
a) The customer asks you to build a circuit to display different numbers (0
to 7) on a seven-segment display. The circuit has the following modular
diagram. The user stores the number to display on first seven-segment dis-
4
1
3
num
sel 2
wr
7
Figure 1:
1
Table 1: Input/Output Truth Table
OPERATION TYPE SEL WR DATA D1 D2 D3 D4
00 1 1 1 OFF OFF OFF
01 1 2 OFF 2 OFF OFF
WRITE OPERATION
10 1 3 OFF OFF 3 OFF
11 1 4 OFF OFF OFF 4
00 0 X 1 OFF OFF OFF
01 0 X OFF 2 OFF OFF
READ OPERATION
10 0 X OFF OFF 3 OFF
11 0 X OFF OFF OFF 4
2 Questions
Answer the following questions:
a) Read the synthesis report of your circuit and describe which path has the
maximum combinational delay?
b) Read the Post-Place & Route static timing report and identify the path
with the maximum combinational delay? Is the path same as the one in
part a?
c) Read the synthesis report and identify how many resources in the FPGA
such as lookup tables (LUTs), input/output (IOs), etc., has been utilized.
Is this resource usage equal to the resource usage of the circuit you de-
signed on paper?
d) Are there any static-zero or static-one hazards in any output of the circuit?
If yes, describe how will you remove it.
3 Instructions
a) A written report is required for this lab. The report should include the
following:
2
(a) A hand-sketched design partition of the system. The design parti-
tion should include multiplexers, demultiplexers, encoders, decoders
and flip flops, and should avoid gates as much as possible. You’re
supposed to design the circuit using the combinational components
mentioned before.
(b) For each component you have drawn in part (a), provide a hand-
sketched gate-level diagram. For example, if you have used a multi-
plexer, draw its gate-level diagram. You can use behavioral modeling
using assign statements for only the components you have studied in
the class.
(c) Different K-maps used to generate component circuits.
The lab manual is for the exclusive use of the students of University of Engineering and
Technology, Lahore. c 2019 UET Lahore.