UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS Fall 2025 Clocked Sequential Circuits © Iris H.-R. Jiang 2 Contents Analysis by signal tracing & timing charts State tables and graphs General models for sequential circuits A sequential parity checker Reading Unit 13 Basically, no inputs Clocked sequential ckt Basic unit Unit 11: Latch & FFs Simple sequential Ckt Unit 12: Registers & Counters Complex sequential Ckt Units 13-15: FSM Put it all together Unit 16: Summary Analysis of Clocked Sequential Circuits © Iris H.-R. Jiang 3 Find the output sequence resulting from a given input one Draw a timing chart to show inputs, clock, FF states, outputs 1. Assume an initial state of FFs (reset to 0) 2. Determine the circuit outputs & FF inputs for 1 st input pattern 3. Determine the new FF states after the next active clock edge 4. Determine the outputs for the new states 5. Repeat 2—4 for each input pattern Current states Current inputs A Clock Clocked sequential ckt Next states … Clock trigger A+ Clock … Current outputs 4 Signal Tracing and Timing Charts Clocked sequential ckt Type I: Moore Machine © Iris H.-R. Jiang 5 Moore machine: the output depends only on the present state The output which corresponds to a given input appears until after the active clock edge Z=AB A′ A B′ DA B DB X 0 1 1 0 1 Clock Clock Clock X B′ Clocked sequential ckt A X A (0) 1 0 B (0) 0 1 Z (0) (0) 1 1 1 1 0 1 0 Type II: Mealy Machine © Iris H.-R. Jiang 6 Mealy machine: the output depends on both the present state and on the inputs False outputs may occur A′ A B′ B ◼ Glitches and spikes KA X 1 0 1 0 X Clock A (0) 0 B (0) 0 1 1 X B′ 1 0 0 “False” 0 output “False” 1 output Clocked sequential ckt KB Clock 1 1 1 JA CK JB 1 Clock Z CK 1 X A X′ A′ B X B X A Z X 7 State Tables and Graphs Clocked sequential ckt How to Construct the State Table? © Iris H.-R. Jiang 8 The state table specifies Next state Output Present state Input When I already know a sequential circuit, what should be the state table of this circuit? Procedure to construct the state table for a given circuit 1. Determine the flip-flop input equations and the output equations from the circuit 2. Derive the next-state equation for each FF from its input equations 3. Plot a next-state map for each flip-flop 4. Combine these maps to form the state table Clocked sequential ckt Recap Next-State Equations © Iris H.-R. Jiang 9 Type Q+ D FF Q+ = D D-CE FF Q+ = D•CE + Q•CE' T FF Q+ = TQ S-R FF Q+ = S + R'Q (SR = 0) J-K FF Q+ = JQ′ + K′Q Clocked sequential ckt Example: Moore Machine (1/2) Input equations to FF 10 1. DA = X B′ DB = A + X Z=AB Next state equations A+ = X B′ B+ = A + X 2. Z A′ A B′ DA B 1 00 1 0 00 0 1 01 0 1 01 0 1 11 0 1 11 1 1 10 1 0 10 1 1 DB 4. state table Clock AB A+ A X 00 01 11 10 10 00 01 11 0 H.-R.1Jiang © Iris B+ A+B+ AB X = 0 X = 1 Z Clock X B′ X 0 AB 3. X 01 11 11 01 0 1 0 1 -current state Eh Example: Moore Machine (2/2)+ © Iris H.-R. Jiang state table A+B+ AB X = 0 X = 1 Z 00 01 11 10 10 00 01 11 01 11 11 01 0 1 0 1 Z X Example: Moore Machine (2/2) 12 0 State table A+B+ AB X = 0 X = 1 Z 00 01 11 10 10 00 01 11 01 11 11 01 S0 0 1 S3 0 1 0 1 S1 S2 S2 S1 Clocked sequential ckt S1 1 1 1 S2 0 0 0 1 Present Next state Present state X = 0 X = 1 output (Z) S3 S0 S1 S2 © Iris H.-R. Jiang 0 State assignment S0 S1 S2 S3 1 0 1 0 1 X 0 1 1 0 1 Clock A (0) 1 0 B (0) 0 1 Z (0) (0) 1 1 1 1 0 1 0 & seate - input Example: Mealy Machine (1/3) © Iris H.-R. Jiang 13 1.&2. A+ = JAA′ + KA′A = XBA′ + X′A A′ B+ = JBB′ + KB′B = XB′ + (AX)′B = XB′ + A′B + X′B Z = X′A′B + XA +XB′ 3. X 0 1 00 0 0 01 0 11 10 AB X 1 00 0 1 1 01 1 1 0 11 1 0 10 A+ CK KA 0 AB A X X Clock 0 1 00 0 1 1 01 1 0 X B′ 1 0 11 0 1 0 1 10 0 1 X A X′ A′ B B+ AB Z JA B′ B CK KB Clock JB X X B X A Z Example: Mealy Machine (2/3) © Iris H.-R. Jiang 14 AB X 00 X 0 1 0 0 00 AB X 0 1 0 1 0 1 0 1 00 1 1 01 1 0 AB 01 0 1 01 11 1 0 11 1 0 11 0 1 10 1 0 10 0 1 10 0 1 A+ B+ Z 0/0 1/1 S0 1/1 S2 S1 1/0 0/0 1/1 0/1 S3 0/0 State graph Present Present Next state output (Z) state X=0 X=1 X=0 X=1 A+B+ Z AB X = 0 X = 1 X = 0 X = 1 4. 00 01 11 10 00 01 11 10 01 11 00 01 0 1 0 0 Clocked sequential ckt 1 0 1 1 State assignment S0 S1 S2 S3 S0 S1 S2 S3 S1 S2 S0 S1 0 1 0 0 1 0 1 1 Example: Mealy Machine (3/3) © Iris H.-R. Jiang 15 0/0 1/1 S0 1/1 S2 S1 1/0 0/0 1/1 0/1 0/0 S3 X 1 0 1 0 1 0 1 Clock A (0) 0 0 1 B (0) 1 1 1 Z Clocked sequential ckt 1 1 0 “False” 0 output “False” 1 output 01/0,10/0,11/1 00/0,01/1,10/1 Example: Serial Adder xi yi /si 16 xi si Full Adder yi ci ci+1 S0 11/0 S1 00/1 © Iris H.-R. Jiang S0: ci=0; S1: ci=1 Carry_out (ci+1) is latched in the DFF The latched Carry_out will be added with the next xi and yi Clock Q D Q′ CK xi xi yi ci Clock ci+1 si 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 0 0 1 yi ci glitch ci+1 si 1 0 0 1 1 Example: Multiple Inputs and Outputs © Iris H.-R. Jiang 17 Present output (Z1Z2) Present Next state state X1X2 = 00 01 10 11 X1X2 = 00 01 10 11 S0 S1 S2 S3 S3 S2 S1 S0 S0 S1 S2 S3 S3 S0 S1 S1 S2 S2 S1 S0 00 10 11 01 10 10 11 11 00 10 11 01 00 00 01 01 11/01 00/00 S0 00/10 10/11 Q: Input X = 0 3 2 1 1 2 3 1 1 2 2 Output Z = ? (check by yourself) State transition : S1S2S3S0 … 01/10 11/01 S3 11/11 10/01 01/10 00, 01/00 Clocked sequential ckt 01/10 S1 10/11 00/00 S2 10/11,11/01 18 General Models Moore vs. Mealy Clocked sequential ckt General Model for Mealy Machines © Iris H.-R. Jiang 19 X1 X2 Z1 Z2 Xm Combinational Subcircuit … … An output is a function of states and inputs Q1+ Zn D1 Q1 CK Q2+ Qk Qk+ D2 CK … …… … Q1 Q2 Dk CK Clocked sequential ckt Q2 Clock Qk General Model for Moore Machines © Iris H.-R. Jiang 20 An output is a function of only states Q1+ … D2 CK Dk CK Clock Combinational Subcircuit (For Outputs) Q2 Qk …… … Clocked sequential ckt Qk+ Z1 CK … Q2 Qk Q1 …… Q1 …… Xm Combinational Subcircuit (For Flip-Flop Q2+ Inputs) D1 … X1 X2 Z2 Zn 21 Case Study: A Sequential Parity Checker Clocked sequential ckt Parity Checker (1/3) © Iris H.-R. Jiang 22 Error detection: add an extra bit (parity bit) when transmitting or storing binary data When the total # of 1 bits in the block (data bits + parity bit) is odd (even), we say the parity is odd (even) Even parity Odd parity 0000000 0000001 0110110 1010101 0111000 0000000 0000001 0110110 1010101 0111000 Data bits Clocked sequential ckt 0 1 0 0 1 Parity bits 1 0 1 1 0 Parity Checker (2/3) © Iris H.-R. Jiang 23 X Design an odd-parity checker Parity Z=1 if total # of 1’s is odd X (Data Input) Checker Z=0 if total # of 1’s is even ◼ Z=0 an error occurs in odd-parity protocol ◼ Initially, Z = 0 Clock Timing chart of the odd parity checker (active-low) 1 0 Clock Z=Q Clocked sequential ckt 0 1 1 0 1 0 Z Parity Checker (3/3) © Iris H.-R. Jiang 24 State graph X=1 X=0 Q′ S0 S1 Z=0 Z=1 Even X=1 X=0 T Odd X Clock Present Present Next state state X = 0 X = 1 output (Z) S0 S1 S1 S0 Clocked sequential ckt Z Q CK State table S0 S1 Implementation 0 1 Q 0 1 Q+ X=0 X=1 0 1 1 0 Z 0 1
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )