Digital Design Lecture 10 Sequential Design State Reduction

  • Slides: 18
Download presentation
Digital Design Lecture 10 Sequential Design

Digital Design Lecture 10 Sequential Design

State Reduction • Equivalent Circuits – Identical input sequence – Identical output sequence •

State Reduction • Equivalent Circuits – Identical input sequence – Identical output sequence • Equivalent States – Same input same output – Same input same or equivalent next state

State Next State x=0 x=1 Output x=0 x=1 a a b 0 0 b

State Next State x=0 x=1 Output x=0 x=1 a a b 0 0 b c d 0 0 c a d 0 0 d e f 0 1 e a f 0 1 f g f 0 1 g a 0 1 f • g & e equivalent, f & d equivalent

State Assignment State a b c d e Binary 000 001 010 011 100

State Assignment State a b c d e Binary 000 001 010 011 100 Gray Code One-Hot 000010 011 001000 110 10000

Reduced State Table: Binary State Assignment State Next State x=0 x=1 000 001 0

Reduced State Table: Binary State Assignment State Next State x=0 x=1 000 001 0 0 010 011 000 011 0 0 100 011 0 1 101 000 011 0 1 Table 5 -10 Output x=0 x=1

Design Procedure • • Develop State Diagram From Specs Reduce States Assign Binary values

Design Procedure • • Develop State Diagram From Specs Reduce States Assign Binary values to States Write Binary-coded State Table Choose Flip-Flops Derive Input and Output Equations Draw the Logic Diagram

Develop State Diagram: Sequence Detector • Detect 3 or more 1 s in sequence

Develop State Diagram: Sequence Detector • Detect 3 or more 1 s in sequence (a Moore Model)

D Flip-Flop Input Equations State A B 0 0 1 1 Input equations come

D Flip-Flop Input Equations State A B 0 0 1 1 Input equations come directly from the next state in D Flip-Flop design Input x 0 1 0 1 Next State A B 0 0 0 1 0 1 0 0 0 1 Output y 0 0 0 1 1 A(t+1) = DA(A, B, x) = (3, 5, 7) B(t+1) = DB(A, B, x) = (1, 5, 7) y(A, B, x) = (6, 7)

Simplified Boolean Equations

Simplified Boolean Equations

Sequence Detector: D Flip-Flops

Sequence Detector: D Flip-Flops

Using JK or T Flip-Flops 1. Develop Excitation Table Using Excitation Tables JK Flip-Flop

Using JK or T Flip-Flops 1. Develop Excitation Table Using Excitation Tables JK Flip-Flop Q(t) 0 0 1 1 Q(t+1) 0 1 T Flip-Flop J K Q(t) 0 1 X X 1 0 0 0 1 1 Table 5 -12 Q(t+1) 0 1 T 0 1 1 0

State Table: JK Flip-Flop Inputs Present State A B 0 0 1 1 Input

State Table: JK Flip-Flop Inputs Present State A B 0 0 1 1 Input x 0 0 1 1 Next State A B JA 0 0 1 0 1 1 1 0 0 1 0 1 1 0 Table 5 -13 Flip-Flop Inputs KA JB KB 0 1 0 1 1 0 0 0 1 1 1 0 0 1 0 1 1 0

Maps for J and K Input Equations

Maps for J and K Input Equations

JK Flip-Flop Sequence Detector

JK Flip-Flop Sequence Detector

Synthesis Using T Flip-Flops: Designing a Counter

Synthesis Using T Flip-Flops: Designing a Counter

3 -Bit Counter State Table Present State Next State Flip-Flop Inputs A 2 A

3 -Bit Counter State Table Present State Next State Flip-Flop Inputs A 2 A 1 A 0 TA 2 TA 1 TA 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 0 1 0 1 0 1 1 1

3 -Bit Counter Karnaugh Maps

3 -Bit Counter Karnaugh Maps

The 3 -Bit Counter

The 3 -Bit Counter