CSE 1203 Sequential Circuits (FFS)
CSE 1203 Sequential Circuits (FFS)
CSE 1203 Sequential Circuits (FFS)
Sequential Circuits
A combinational circuit:
• At any time, outputs depends only on inputs
• Changing inputs changes outputs
• No regard for previous inputs
• No memory (history)
• Time is ignored !
A sequential circuit:
• A combinational circuit with feedback through memory
• The stored information at any time defines a state
• Outputs depend on current inputs and previous inputs
• Previous inputs are stored as binary information into memory
• Next state depends on current inputs and present state
1-bit memory and two (2) 4-bit memory
Only one 1-bit full-adder needed!
4 clocks to get the output
The 1-bit memory defines the circuit state (0 or 1)
March 29, 2024 7
CSE 1203: Digital Logic Design
Types of Sequential Circuits
• Two types of sequential circuits:
• Synchronous: The behavior of the circuit
depends on the input signal at discrete
instances of time (also called clocked)
• Asynchronous: The behavior of the circuit
depends on the input signals at any instance
of time and the order of the inputs change
• A combinational circuit with feedback
clock
clock
clk
Latches?
clock
Example
• What happens if Clock=1? What will be the
value of Q when Clock goes to 0? D Q Q
• Problem: A latch is transparent; state keeps
changing as long as the clock remains active Clock C Q
• Due to this uncertainty, latches can not be
reliably used as storage elements.
March 29, 2024 CSE 1203: Digital Logic Design 21
Flip Flops
• A flip-flop is a one bit memory similar to latches
• Solves the issue of latch transparency
• Latches are level sensitive memory element
• Active when the clock = 1 (whole duration)
• Flip-Flops are edge-triggered or edge-sensitive memory
elements
• Active only at transitions; i.e. either from 0 1 or 1 0
level
clk clk
clk clk
• D = J Q’ + K’ Q
• J sets the flip flop (1)
• K reset the flip flop (0)
• When J = K = 1, the output is complemented
• D = J Q’ + K’ Q
• J sets the flip flop (1) JK Flip Flop built with SR latches
• K reset the flip flop (0)
• When J = K = 1, the output is complemented
1
11