1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on its current inputs but also on the past sequence of inputs, possibly arbitrarily far back in time Examples –Counters –Parallel-to-Serial conversion of byte data
2 Sequential Circuits State of Circuit –Binary information stored in the memory elements determines the “state” of the circuit –Output and next state is determined by input signals and current state of circuit
3 Sequential Circuits 2 Major Types of Circuits Asynchronous –Inputs may change at any time –Complicated and maybe unstable because of feedback Synchronous –Input change is only effected at certain times determined by a master clock (pulse or edge detection) or master-slave operation
4 Asynchronous Sequential Circuits Latch Temporary storage device that has two stable states Normally has two inputs Two complementary outputs available: Q and Q’ When the latch is set to a certain state it retains its state unless the inputs are changed to set the latch to a new state A latch serves as a memory element which is able to retain the information stored in it
5 S-R (Set-Reset) Latch InputOutput SRQ t+1 00QtQt Invalid NOR gate based
6 S-R (Set-Reset) Latch Truth table Characteristic Equation Q t+1 = S + R’Q;SR = 0 QSRQ t Invalid
7 S-R (Set-Reset) Latch InputOutput S’S’ R’R’ Q t+1 11QtQt Invalid NAND gate based
8 S-R (Set-Reset) Latch Standard Logic Symbols
9 S-R (Set-Reset) Latch Timing diagram of active-low input latch
10 S-R (Set-Reset) Latch Timing diagram of active-high input latch
11 S-R Latch Apps - Burglar Alarm
12 Synchronous Sequential Circuits Latches –Asynchronous circuits –Outputs are transparent to inputs Gated or Clocked Latches –Synchronous circuits b/c clock or enable input dictates when inputs are latched onto outputs –May still have both transparent and latched operation if inputs change while clock is active Flip Flops –Flip-Flops are synchronous bi-stable devices, known as bi-stable multivibrators –The output of the flip-flop can only change once by the applied inputs upon application of clock input –Edge Triggered or Master Slave
13 S-R Gated Latch –Adds a clock (control) input gated to an S-R latch –S/R inputs are passed on to the latch portion synchronised by the clock pulse –Also called Clocked S-R Latch CK
14 S-R Gated Latch Truth table Characteristic Equation Q t+1 = S + R’Q;SR = 0 QSRQ t Invalid
15 S-R Gated Latch Timing
16 D Gated Latch CK
17 D Gated Latch Truth table Characteristic Equation Q t+1 = D QDQ t
18 D Gated Latch Apps
19 D Gated Latch Timing
20 Latches - Transparency Problem What’s transparency? –Output follows input instantaneously – tunneling –Behavior depicted in latches The transparency problem –If output is fed back, circuit may become unstable The solution? –Master Slave or Edge Triggered FF
21 Transparency Problem
22 Transparency Problem
23 Master Slave Flip Flop
24 Master Slave Flip Flop
25 S-R Master Slave Flip Flop
26 Master Slave Flip Flops Summary Have two stages – Master and Slave Each stage works in one half of the clock signal Inputs are applied in the first half of the clock signal Outputs do not change until the second half of the clock signal Allows digital circuits to operate in synchronization with a common clock signal Inherently slow throughput Mostly obsolete Better Solution: Edge Triggered flip-flops An edge-triggered flip-flop ignores the pulse while it is at a constant level and triggers only during a transition of the clock signal - faster
27 D Flip-Flop Apps – Registers
28 Edge Triggered J-K Flip Flop
29 Edge Triggered J-K Flip Flop InputOutput CLKJKQ t+1 0XXQtQt 1XXQtQt ↑00QtQt ↑010 ↑101 ↑11 Qt’Qt’ InputOutput CLKJKQ t+1 0XXQtQt 1XXQtQt ↓00QtQt ↓010 ↓101 ↓11 Qt’Qt’
30 T Flip Flop Truth table Characteristic Equation Q t+1 = TQ’ + T’Q QTQ t
31 T Flip Flop
32 Flip-Flop Operating Characteristics Performance specified by several operating characteristics provided in the data sheets of FF’s The important operating characteristics are: –Propagation Delay –Set-up Time –Hold Time –Maximum Clock frequency –Pulse Width –Power Dissipation
33 Flip Flop Logic Symbols Summary
34 Qt+1 = S + R’Q;SR = 0 Qt+1 = D Qt+1 = JQ’ + K’Q Qt+1 = TQ’ + T’Q Flip Flop Characteristic Equations
35 Flip Flop Excitation Tables QtQt Q t+1 SR 000X X0 QtQt JK 000X 011X 10X1 11X0 QtQt D QtQt T
36 Flip Flop Usage Guide Type of ApplicationPreferred FF Transfer of data (e.g. shift registers) RS or D Complementation (e.g. binary counters) T Above or any other general application JK