Sequential Circuits: Cpe 443/L Advanced Logic Circuits
Sequential Circuits: Cpe 443/L Advanced Logic Circuits
CpE 443/L
Advanced Logic Circuits
Objectives
• Sequential Circuits
• Storage Elements (Memory)
• Latches
• Flip-Flops
Combinational vs Sequential
inputs X Combinational outputs Z
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 !
Combinational vs Sequential
inputs X Combinational outputs Z
Circuits
present state next state
Memory
A sequential circuit:
• A combinational circuit with feedback through memory
• The stored information at any time defines a state
• Outputs depends on inputs and previous inputs
• Previous inputs are stored as binary information into memory
• Next state depends on inputs and present state
Examples of sequential systems
clock
clock
clk
Latches?
clock
Example
• What happens if Clock=1? What will be the
value of Q when Clock goes to 0? Q
D Q
• Problem: A latch is transparent; state keep
changing as long as the clock remains active
• Due to this uncertainty, latches can not be Clock C Q
reliably used as storage elements.
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 element
• 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
Other Flip Flops
JK Flip Flop
• 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
Other Flip Flops (cont.)
T Flip Flop