quartz/content/notes/sequential-circuits.md
2022-07-26 12:28:12 +12:00

2.4 KiB

title aliases tags
sequential-circuits
cosc204

combinatorial-logic-circuits always produce the same outputs given the same input. Sequential curcuits on the other hand, produce different outputs depending on past history and the inputs.

combinatorial vs sequential|200

There are two main types of sequential circuit

  • Sychronous
    • this is when changes of state occur in time with a clock cycle
    • changes of input occur between clock pulses
    • state changes occur at the clock pulses
  • Asynchronous
    • state changes occur as the inputs occur
    • event driven

Main circuits

SR latch

The set reset latch is the most basic and simple sequential circuit. It is anychronous

simple sr latch with NOR gate|200

The ouput is remembered and changed basic on previous output.

  • When S (set) is pulsed Q is one and Q̄ is zero
  • When R (reset) is pulsed Q is set to zero and Q̄ is set to one

D Flip FLop

D flip flop with NAND gates|200

The D flip flop is basically an SR connected to a clock. Making it synchronous.

Instead of switching when you set or reset. The outputs change when the clock pulses. Depending on the value of the D(ata) input.

circuit simulation

T Flip Flop

T Flip Flop with NAND and NOR gates|200

The T flip flop swtiches between the two outputs Q and Q̄ when

  • T(oggle) is held high
  • And the clock is cycled (from off to on to off)

JK Flip Flop

JK flip flop diagram|200

The JK flip flop is a combination of the d flip flop and the t flip flop.

J K Result
0 0 No Change
0 1 Set
1 0 Reset
1 1 Toggle

It can be used as a toggle and as a d flip flop.

jk flip flop simulation

Synchronous Counter

simulation slide|300

Video demonstration of some sequential circuits