Sequential Logic Circuits

Computer Organization and Digital Design 2nd Semester

Output depends on current inputs and past outputs

  • State : Collection of state variables

Sequential logic circuits are also called as finite state machines

Sequential Circuit types

  • Feedback sequential circuits: Use individual logic gates and feedback loops for memory
  • Clocked synchronous state machines : Use latches and flipflops as building blocks controlled by clock

Latches and Flip Flops

LatchFlip Flop
Triggered by input levelTriggered by clock edges
AsynchronousSynchronous
Can change state while enabledState change only at clock edge

S-R Latch

Block DiagramLogic diagram
SRSR
SRQQN
00last Qlast QN
0101
1010
1100

S-R Latch with Enable

Block DiagramLogic Diagram
SRSR
SRCQQN
001last Qlast QN
01101
10110
11111
xx0last Qlast QN

D Latch

  • Stores one bit of information
  • A transparent Latch
Block DiagramLogic Diagram
DD
CDQQN
1001
1110
0xlast Qlast QN

D Flip Flop

  • Output changes only at an edge of a clock signal
  • Two Types:
    • Positive Edge Triggered
    • Negative Edge Triggered
Block DiagramLogic Diagram
DD
DCLKQQN
0 01
1 10
x0last Qlast QN
x1last Qlast QN

J-K Flip Flop

Block DiagramLogic Diagram
JKJK
JKCLKQQN
xx0last Qlast QN
xx1last Qlast QN
00 last Qlast QN
01 01
10 10
11 last QNlast Q

T Flip Flop

  • Toggle at every Clock signal
Using DUsing J-KD with EnableJ-K With Enable
[Pasted image 20250614163111.png][Pasted image 20250614163120.png][Pasted image 20250614163130.png][Pasted image 20250614163137.png]

Clocked Synchronous State Machines

  • State Machine : Sequential Operation
  • Clocked : State change with clock edge
  • Synchronous : All flip flops use the same clock

A

Example: 3 Bit Counter using D-FlipFlops

State Diagram

A

Excitation Table

A

K-Maps

A

Excitation Equations

A

Logic circuit for Individual Excitations

A

Complete Logic Circuit

A

Circuit in Action

A