DCFMOD4
DCFMOD4
SEQUENTIAL CIRCUITS
Sequential Circuits
• In a sequential circuit, the outputs depends on both the present
inputs as well as the previous outputs.
• The previous outputs are also called present state of the circuit.
• The present outputs are also called next state of the circuit.
• A sequential circuit most often contains memory storage
elements.
• It may also need clock signals.
Comparison between Combinational and Sequential Circuits
Asynchronouse & Synchronous Sequential
Circuits
• There are two types of Sequential Circuits:
• Synchronous Sequential Circuits.
• Asynchronous Sequential Circuits.
Synchronous Sequential Circuits
• In a synchronous sequential circuit, the outputs depends on
both the present inputs as well as the previous outputs.
• The outputs also depend on clock signals.
• It most often contains memory storage elements.
• Synchronous Sequential circuits are slow. But, they are easy
to design.
Asynchronous Sequential Circuits
• In an asynchronous sequential circuit, the outputs depends
on both the present inputs as well as the previous outputs.
• It does not need clock signals.
• It most often contains memory storage elements.
• Asynchronous Sequential circuits are fast. But, they are not
easy to design.
S – R Latch (using NOR gate)
• A latch is a memory element that can
store one bit of information.
• A latch is an asynchronous circuit,
because it does not require clock.
• An S-R latch has two cross-coupled NOR
gates.
• It has two inputs (R and S) and two
outputs (Q and Q)ഥ
• If R=0 & S=0, the outputs do not change
(ie. the outputs Q and Qഥ retain their
present state (No Change))
• If R=1 & S=0, Q will become 0 (and Q ഥ will
become 1). This is called RESET state.
• If R=0 & S=1, Q will become 1 (and Q ഥ will
become 0). This is called SET state.
• If R=1 & S=1, both the NOR gets will force
the outputs(Q and Q) ഥ to become 0 which
is an indeterminate or undefined state.
S – R Latch (using NAND gate)
• An S-R Latch is a memory element that
can store one bit of information.
• It has two inputs (R and S) and two
outputs (Q and Q)ഥ
• If R=0 & S=0, the outputs do not
change (ie. the outputs Q and Q ഥ retain
their present state (No Change))
• If R=1 & S=0, Q will become 0 (and Q ഥ
will become 1). This is called RESET
state.
• If R=0 & S=1, Q will become 1 (and Q ഥ
will become 0). This is called SET state.
• If R=1 & S=1, both the NOR gets will
force the outputs(Q and Q ഥ ) to become
0 which is an indeterminate or
undefined state.
S – R Latch with control input
• An S-R Latch is a memory
element that can store one bit of
information.
• It has two inputs (R and S) and
two outputs (Q and Q ഥ)
• It also has a control input ‘C’.
• The Set and Reset operations of
the latch will happen only when
the value of the control input C
is 1. If C=0, no change in output.
• The S=1, R=1 state is
indeterminate or undefined.
D Latch
• One way to eliminate the
indeterminate state of S-R Latch is
to ensure R and S are never equal
to 1 at the same time. This is D C
Latch.
• D Latch is constructed from a gated
SR latch with an inverter added
between the S and R inputs to
allow for a singe D (data) input.
• It also has a control input ‘C’.
• D input is directly connected to S
input and its complement is
connected to R input.
Flip Flop (S-R Flip Flop)
• A flip flop is a memory element that can store one bit of
information just like a latch.
• But, a flip flop is a synchronous circuit.
• So, a flip flop requires a clock input for its working.
• It has two inputs (R and S) and two outputs (Q and Q ഥ)
• It also has a clock input CP (clock pulse)
• The Set and Reset operations of the flip flop will happen
only when the value of the clock input CP is 1. If C=0, no
change in output.
• When CP=S=R=1, both the outputs Q and Q ഥ will be 1 which
is an Invalid or Undefined state.
Edge Triggered Flip Flops
• An edge-triggered flip-flop changes state either at the positive
edge (rising edge) or at the negative edge (falling edge) of the
clock pulse.
• So they are either positive edge-triggered or negative edge-
triggered FFs.
• There are 2 types of edge-triggered flip flops : D and J-K.
The Master Slave J-K Flip Flop is used to overcome the race condition problem of
J-K Flip Flop
Registers & Shift Registers
• Register
• A flip flop can store one bit (0 or 1) of data.
• A register contains a number of flip flops to store a group of bits.
• So, a register is an important memory device.
• Usually, D flip flops are used in registers.
• Shift register
• A shift register contains a number of flip flops to store groups of bits.
• It can also shift bits of data.
• This capability is used to transfer data.
• A shift register can shift data left or right.
• Usually, D flip flops are used in shift registers.
(SISO)
(SIPO)
(PISO)
• Load mode
• The bits B0, B1, B2, and B3 are passed to the corresponding flip flops when the
second, fourth, and sixth "AND" gates are active.
• These gates are active when the shift or load bar line set to 0.
• The binary inputs B0, B1, B2, and B3 will be loaded into the respective flip-
flops when the edge of the clock is low.
• Thus, parallel loading occurs.
• Shift mode
• The second, fourth, and sixth gates are inactive when the load and shift line
set to 0.
• At this time, the first, third, and fifth gates will be activated, and the shifting
of the data will be left to the right bit. I
• In this way, the "Parallel IN Serial OUT" operation occurs.
Parallel In Parallel Out (PIPO)
• In "Parallel IN Parallel OUT", the inputs and the outputs come in a parallel
way in the register.
• The inputs B0, B1, B2, and B3, are directly passed to the data inputs D0, D1, D2,
and D3 of the respective flip flop.
• The bits of the binary input is loaded to the flip flops when the clock is
applied.
• The clock pulse is required for loading all the bits.
• At the output side, the loaded bits appear.
Counters
• A counter is a sequential device used for counting (up or down) clock
pulses.
• It is a group of flip flops with a clock signal applied.
• There can be Up counter, Down counter and Up/Down counter
• Types of counters:
• Asynchronous counter (or Ripple counter)
• Synchronous counter.
Mod-5 Counter
Mod-8 (or 3 Bit) Counter