Synchronous Sequential logic_RJS_Part3
Synchronous Sequential logic_RJS_Part3
Module 4
Synchronous Sequential
Logic_part 3
‘Digital Design’ by Morris Mano
Dr. Rithu James
Asso. Professor
Dept. of ECE
RSET, Kochi
1
Module 4: Sequential Logic Circuits:
• Building blocks like S-R, JK and Master-Slave JK FF, Edge
triggered FF,
• Conversion of Flipflops, Excitation table and characteristic
equation.
• Implementation with verilog codes.
• Ripple and Synchronous counters and implementation in
verilog,
• Shift registers-SIPO, SISO, PISO, PIPO.
• Shift Registers with parallel Load/Shift, Ring counter and
Johnsons counter.
• Asynchronous and Synchronous counter design, Mod N
counter.
• Modeling and simulation of flipflops and counters in verilog.
Contents
•Registers
•Shift registers
•Universal Shift Register
•Shift register Counters
3
Registers
Registers
• A register is a group of flip‐flops, each one of which shares a
common clock and is capable of storing one bit of
information.
• An n‐bit register consists of a group of n flip‐flops capable of
storing n bits of binary information.
• In addition to the flip‐flops, a register may have combinational
gates that perform certain data‐processing tasks.
• In its broadest definition, a register consists of a group of
flip‐flops together with gates that affect their operation.
• The flip‐flops hold the binary information, and the gates
determine how the information is transferred into the
register.
• The simplest register is one that consists of only flip‐flops,
without any gates.
4-bit register operation
• The common clock input triggers all flip‐flops on the
positive edge of each pulse, and the binary data available
at the four inputs are transferred into the register.
• The value of ( I 3 , I 2 , I 1 , I 0 ) immediately before the clock
edge determines the value of ( A 3 , A 2 , A 1 , A 0 ) after the
clock edge.
• The four outputs can be sampled at any time to obtain the
binary information stored in the register.
• The input Clear_b goes to the active‐low R (reset) input of
all four flip‐flops. When this input goes to 0, all flip‐flops
are reset asynchronously. The Clear_b input is useful for
clearing the register to all 0’s prior to its clocked
operation.
• The R inputs must be maintained at logic 1 (i.e., de-
asserted) during normal clocked operation.
A register constructed with four D ‐type flip‐flops to form a
four‐bit data storage register
Register with Parallel Load
• The transfer of new information into a register is referred to as
loading or updating the register.
• If all the bits of the register are loaded simultaneously with a
common clock pulse the loading is done in parallel .
• The load input to the register determines the action to be taken with
each clock pulse.
– When the load input is 1, the data at the four external inputs are
transferred into the register with the next positive edge of the clock.
– When the load input is 0, the outputs of the flip‐flops are connected to
their respective inputs.
• The feedback connection from output to input is necessary because
a D flip‐flop does not have a “no change” condition. With each clock
edge, the D input determines the next state of the register.
• To leave the output unchanged, it is necessary to make the D input
equal to the present value of the output (i.e., the output circulates to
the input at each clock pulse).
Shift Registers
Basic Data Movement in Shift Registers
Shift Registers
• A register capable of shifting the binary information held in
each cell to its neighboring cell, in a selected direction, is called
a shift register.
• The logical configuration of a shift register consists of a chain of
flip‐flops in cascade, with the output of one flip‐flop connected
to the input of the next flip‐flop.
• All flip‐flops receive common clock pulses, which activate the
shift of data from one stage to the next. The output of a given
flip‐flop is connected to the D input of the flip‐flop at its right.
• This shift register is unidirectional (left‐to‐right).
• Each clock pulse shifts the contents of the register one bit
position to the right.
• The serial input determines what goes into the leftmost flip‐flop
during the shift.
• The serial output is taken from the output of the rightmost
flip‐flop.
Four-bit shift register
Serial In/ Serial Out Shift Registers
(SISO)
• Ring Counter
• Johnson Counter
Ring Counter
• Timing signals that control the sequence of operations in a
digital system can be generated by a shift register or by a
counter with a decoder.
• A ring counter is a circular shift register with only one
flip‐flop being set at any particular time; all others are
cleared.
• The single bit is shifted from one flip‐flop to the next to
produce the sequence of timing signals.
• The initial value of the register is 1000 and requires
Preset/Clear flip‐flops.
• The single bit is shifted right with every clock pulse and
circulates back from T3 to T0. Each flip‐flop is in the 1 state
once every four clock cycles and produces one of the four
timing signals.
• Each output becomes a 1 after the negative‐edge transition
of a clock pulse and remains 1 during the next clock cycle.
Ring Counter
Preset the 1st Flip Flop
Clear the rest Flip Flops
Timing Diagram