Lab Manual 10 (2)
Lab Manual 10 (2)
Lab Objectives:
The main objective of this lab is to understand how the synchronous sequential circuits works
and to design them using Verilog.
Sequential Circuits:
A Sequential circuit produces an output based on current input and previous input
variables. That means sequential circuits include memory elements that can store binary
information. That binary information defines the state of the sequential circuit at that time. A
latch capable of storing one bit of information.
Latch:
Latches are basic storage elements that operate with signal levels (Level-Triggered).
Latches are useful for the design of the asynchronous sequential circuit.
SR LATCH USING NAND GATE
SR Flip Flop:
A Flip-Flop will have an extra clock signal, that means it is Edge-triggered, in contrast with
a latch. The main function of the flip-flop is to store the binary values.
JK FLIP FLOP:
A J-K flip-flop is nothing more than an S-R flip-flop with an added layer of feedback. This
feedback selectively enables one of the two set/reset inputs so that they cannot both carry an
active signal to the multivibrator circuit, thus eliminating the invalid condition.
Different ways of Modeling Clock input in Test bench (Xillinx):
FIRST:
Begin
clk = 1’b0;
end
SECOND:
Begin
clk= 1’b0;
end
THIRD:
Begin
clk= 1’b0;
repeat(50)
End
Tasks:
1. Implement SR flip flop using Verilog. Write Test bench and analyze the timing waveform
and Schematic Diagram
2. Implement JK flip flop in Verilog. Write Test bench and analyze the timing waveform
and Schematic Diagram.