Chapter 7. Synchronous Sequential Networks. Excitation for

Similar documents
Analysis and Design of Sequential Circuits: Examples

Lecture (08) Synchronous Sequential Logic

Sequential Circuit Design

Chapter 5 Synchronous Sequential Logic

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Sequential Synchronous Circuit Analysis

FYSE420 DIGITAL ELECTRONICS

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Finite State Machine. By : Ali Mustafa

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Synchronous Sequential Logic

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

COE 202: Digital Logic Design Sequential Circuits Part 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Sequential logic and design

ELE2120 Digital Circuits and Systems. Tutorial Note 9

FSM model for sequential circuits

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Digital Design. Sequential Logic

Chapter 6. Synchronous Sequential Circuits

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

Sequential Circuit Analysis

SYNCHRONOUS SEQUENTIAL CIRCUITS

Counters. We ll look at different kinds of counters and discuss how to build them

ECE380 Digital Logic. Synchronous sequential circuits

COE 202: Digital Logic Design Sequential Circuits Part 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Synchronous Sequential Logic. Chapter 5

EEE2135 Digital Logic Design

Analysis of clocked sequential networks

Digital Logic Design. Midterm #2

Digital Circuits and Systems

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Lecture 10: Synchronous Sequential Circuits Design

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Chapter 4 Part 2 Sequential Circuits

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

DE58/DC58 LOGIC DESIGN DEC 2014

Synchronous Sequential Circuit Design

Lecture 17: Designing Sequential Systems Using Flip Flops

CprE 281: Digital Logic

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Clocked Synchronous State-machine Analysis

Sample Test Paper - I

Fundamentals of Digital Design

Philadelphia University Student Name: Student Number:

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

CSE 140: Components and Design Techniques for Digital Systems. Lecture 9: Sequential Networks: Implementation

Sequential vs. Combinational

CSE140: Digital Logic Design Registers and Counters

Philadelphia University Student Name: Student Number:

Timing Constraints in Sequential Designs. 63 Sources: TSR, Katz, Boriello & Vahid

Models for representing sequential circuits

Lecture 8: Sequential Networks and Finite State Machines

6 Synchronous State Machine Design

Different encodings generate different circuits

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

ELCT201: DIGITAL LOGIC DESIGN

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Chapter 4. Sequential Logic Circuits

Digital Electronics Sequential Logic

Topic 8: Sequential Circuits

Synchronous Sequential Circuit Design. Digital Computer Design

Topics for Lecture #9. Button input processor

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Analysis of Clocked Sequential Circuits

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

Present Next state Output state w = 0 w = 1 z A A B 0 B A C 0 C A C 1

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Sequential Circuits Sequential circuits combinational circuits state gate delay

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Philadelphia University Faculty of Engineering

Digital Logic Design - Chapter 5

課程名稱 : 數位邏輯設計 P-1/ /6/11

5 State Minimisation. university of applied sciences hamburg. Digital Systems. Prof. Dr. J. Reichardt Prof. Dr. B. Schwarz

Faculty of Engineering. FINAL EXAMINATION FALL 2008 (December2008) ANSWER KEY

14:332:231 DIGITAL LOGIC DESIGN

Overview of Chapter 4

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Digital Design 2010 DE2 1

Learning Objectives:

Menu. Master-Slave Flip-Flop

Digital Logic Design. Midterm #2

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Design at the Register Transfer Level

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Design of Sequential Circuits

EE 209 Spiral 1 Exam Solutions Name:

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

Transcription:

Chapter 7 Excitation for Synchronous Sequential Networks J. C. Huang, 2004 igital Logic esign 1 Structure of a clocked synchronous sequential network Mealy model of a clocked synchronous sequential network Excitation for J. C. Huang, 2004 igital Logic esign 2 J. C. Huang, 2004 igital Logic esign 3 Moore model of a clocked synchronous sequential network Logic diagram for Example 7.1 J. C. Huang, 2004 igital Logic esign 4 J. C. Huang, 2004 igital Logic esign 5

Logic diagram for Example 7.2 State diagram for Example 7.1 J. C. Huang, 2004 igital Logic esign 6 J. C. Huang, 2004 igital Logic esign 7 State diagram for Example 7.2 Timing diagram for Example 7.1 J. C. Huang, 2004 igital Logic esign 8 J. C. Huang, 2004 igital Logic esign 9 The analysis procedure The serial binary adder J. C. Huang, 2004 igital Logic esign 10 J. C. Huang, 2004 igital Logic esign 11

Obtaining the diagram for a Mealy serial binary adder. (a) Partial diagram. (b) Completed diagram. Reset ( ab s ) 11 0 00 0 01 1 10 1 G H 01 0 10 0 11 1 G: H: 00 1 carry-in = 0 carry-in = 1 State diagram for the serial adder J. C. Huang, 2004 igital Logic esign 12 J. C. Huang, 2004 igital Logic esign 13 Present Next Output s ab =01 10 11 01 10 11 a b Full adder Y carry-out Q y s G G G G H 0 1 1 0 H G H H H 1 1 Clock Q Reset State table for the serial adder Circuit for the adder FSM J. C. Huang, 2004 igital Logic esign 14 J. C. Huang, 2004 igital Logic esign 15 State diagram for a Moore serial binary adder Reset 00 G 0 s = 0 11 H 0 s = 0 01 10 01 10 00 00 11 11 01 10 01 10 G 1 s = 1 00 H 1 s = 1 11 State diagram for the Moore-type serial adder FSM J. C. Huang, 2004 igital Logic esign 16 J. C. Huang, 2004 igital Logic esign 17

A Present Next Output ab =01 10 11 s G 0 G 0 G 1 G 1 H G 1 G 0 G 1 G 1 H 0 1 H 0 G 1 H 0 H 0 H 1 0 H 1 G 1 H 0 H 0 H 1 1 Clock Shift register Shift register a b Adder FSM s Shift register Sum = A + State table for the Moore-type serial adder FSM lock diagram of a serial adder J. C. Huang, 2004 igital Logic esign 18 J. C. Huang, 2004 igital Logic esign 19 A sequence recognizer State diagram for a sequence recognizer. (a) etection of two consecutive 0 s. (b) Partial analysis of the three-symbol sequence. (c) Completed diagram. (d) efinition of s. J. C. Huang, 2004 igital Logic esign 20 J. C. Huang, 2004 igital Logic esign 21 A 0110/1001 sequence recognizer. (a) eginning the detection of the sequences 0110 or 1001. (b) efinition of s. (c) Completing the detection of the two sequences 0110 or 1001. (d) Completed diagram. State diagram for the final example J. C. Huang, 2004 igital Logic esign 22 J. C. Huang, 2004 igital Logic esign 23

State reduction Experiment for determining equivalent pairs of s Theorem 7.1 Two s p and q of a synchronous sequential network are equivalent if and only if for each combination of values of the input variables (1) their outputs are identical and (2) their next s are equivalent. J. C. Huang, 2004 igital Logic esign 24 J. C. Huang, 2004 igital Logic esign 25 The structure of an implication table Implication table inspection process If (q a,q b ) is in the q i q j cell, and if q a q b cell contains a, then place a in the q i q j cell and ignore all other entries in that cell. Otherwise inspect other pairs in q i q j. Repeat this steps until it is possible to make an entire pass without adding a new. Upon completion, if q i q j cell contains no then q i is equivalent to q j. J. C. Huang, 2004 igital Logic esign 26 J. C. Huang, 2004 igital Logic esign 27 A C E F G Example table next x=0 x=1 A C F E F G G C A F output (z) x=0 x=1 0 1 0 1 Implication table for determining the equivalent s. (a) The initial table. (b) After the first pass. (c) After the second pass. J. C. Huang, 2004 igital Logic esign 28 J. C. Huang, 2004 igital Logic esign 29

Equivalence classes of s The resulting implication table shows that A=, A=G, =F, and =G. This leads us to the formation of the equivalence classes {(A,,G), (,F), (C), (E)} Hence the reduced table shown below. (A,,G): α (,F): β (C): γ (E): δ Minimized example table next x=0 x=1 α β α γ β δ β α output (z) x=0 x=1 0 1 J. C. Huang, 2004 igital Logic esign 30 J. C. Huang, 2004 igital Logic esign 31 Implication table for determining equivalent s of the 0110/1001 sequence recognizer. (a) Initial table. (b) Final table. Logic diagram for the excitation table of Table 7.19 J. C. Huang, 2004 igital Logic esign 32 J. C. Huang, 2004 igital Logic esign 33 Logic diagram for the excitation table of Table 7.20 Logic diagram for the Moore serial binary adder J. C. Huang, 2004 igital Logic esign 34 J. C. Huang, 2004 igital Logic esign 35

inputs combinational circuit outputs memory elements Typical block diagram of a sequential circuit J. C. Huang, 2004 igital Logic esign 36 Example sequential circuit 1 J. C. Huang, 2004 igital Logic esign 37 x comb. network A=A +x y = x =x(a + ) + x A ' A' A lock diagram of Example 1 Example sequential circuit 2 J. C. Huang, 2004 igital Logic esign 38 J. C. Huang, 2004 igital Logic esign 39 x comb. network A=xA+x =xa' y = (A+)x' ' A' A lock diagram of Example 2 J. C. Huang, 2004 igital Logic esign 40 Example sequential circuit 3 J. C. Huang, 2004 igital Logic esign 41

x comb. network ' A' A J K J K JA = KA = x' J = x' K = A'x + Ax' KA JA K J lock diagram of Example 3 next x = 0 x = 1 A(t)(t) A(t+1)(t+1)? A(t+1)(t+1)? 0 1?? 1 0?? 1 1?? To analyze the preceding circuit is to complete this table J. C. Huang, 2004 igital Logic esign 42 J. C. Huang, 2004 igital Logic esign 43 Steps involved: 1. Construct the truth table of the combinational network to determine the output and the input to the flip-flops. 2. Use the characteristic table of the flip-flops to determine the next s. x comb. network ' A' A J K J K JA = KA = x' J = x' K = A'x + Ax' KA JA K J Sequential circuit implemented with JK flip-flops (Fig. 6-19) J. C. Huang, 2004 igital Logic esign 44 J. C. Huang, 2004 igital Logic esign 45 Step 1: construct the truth table of the combinational network. x A JA KA J K 0 1 0 1 1 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 0 Step 2: extend the truth table to inclues contents of flip-flops at time t+1. x A JA KA J K A(t+1) (t+1) 0 1 0 1 1 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 0 J. C. Huang, 2004 igital Logic esign 46 J. C. Huang, 2004 igital Logic esign 47

Step 2.1: find A(t+1), with the help of a characteristic table. x A JA KA J K A(t+1) (t+1) 0 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 0 1 Step 2.2: find (t+1), with the help of a characteristic table. x A JA KA J K A(t+1) (t+1) 0 1 1 1 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 The characteristic table of a JK flip-flop J K Q(t+1) Q(t) no change 0 1 0 reset 1 0 1 set 1 1 Q'(t) complement The characteristic table of a JK flip-flop J K Q(t+1) Q(t) no change 0 1 0 reset 1 0 1 set 1 1 Q'(t) complement J. C. Huang, 2004 igital Logic esign 48 J. C. Huang, 2004 igital Logic esign 49 Step 2.3: final step. x A JA KA J K A(t+1) (t+1) 0 1 1 1 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 Reconstruct the table to yield next x = 0 x = 1 A(t)(t) A(t+1)(t+1) 0 1 A(t+1)(t+1) 01 11 10 10 11 10 11 00 11 J. C. Huang, 2004 igital Logic esign 50 Mealy and Moore Models There are two models of sequential circuit: Mealy Model: the outputs are functions of both the s and inputs. Moore Model: the outputs are a function of the only. Example: J. C. Huang, 2004 igital Logic esign 51 esign Steps State Reduction Two s are said to be equivalent if, for each possible single input, they giv e exactly the same output and send the circuit either to the same or to an equivalent. When two s are equivalent in this sense, one of them can be removed without altering the input-output relations. 1. Obtain the word description of the desired circuit behavior. 2. Construct the table of the desired circuit. 3. Reduce the numb er of to the extent possible ( reduction). 4. Assign a bit pattern to each ( assignment). 5. etermine the no. of flip-flops needed and assign a letter symbol to each. 6. Choose the type of flip-flop to be used. 7. erive the truth table of the required combinational circuit from the table. 8. Simplify the combinational circuit. 9. raw the logic diagram. J. C. Huang, 2004 igital Logic esign 52 J. C. Huang, 2004 igital Logic esign 53

e sign Ex ampl e: Suppo se we are given a w ord descript ion of th e d es ired cir cuit behavio r, and it is translated into the fol low ing table (Step 2): presen t nex t sta te outpu t x=0 x=1 x=0 x=1 a f b b d c c f e d g a 1 0 e d c f g d 0 1 g g h 0 1 h g a 1 0 J. C. Huang, 2004 igital Logic esign 54 State reduction (step 3) next output x=0 x=1 x=0 x=1 a f b b d a c c f b e d f g a 1 0 e d a c f f g d 0 1 g g d h 0 1 h g a 1 0 J. C. Huang, 2004 igital Logic esign 55 esign Example: A possible assignment (State 4): The reduced table (Step 3): next output x=0 x=1 x=0 x=1 a f b b d a d f a 1 0 f f d 0 1 next output x=0 x=1 x=0 x=1 a f b b d a d f a 1 0 f f d 0 1 a 01 10 b d 11 f next output x=0 x=1 x=0 x=1 A A(t+1)(t+1) A(t+1)(t+1) y(t) y(t) 1 1 0 1 0 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 J. C. Huang, 2004 igital Logic esign 56 J. C. Huang, 2004 igital Logic esign 57 esign Example This table can be implemented by a sequential circuit of the form depi cted below using type flip-flops (Steps 5 and 6): x comb. network A=? =? y=? Reconstruct the table next output x=0 x=1 x=0 x=1 A A(t+1)(t+1) 1 1 A(t+1)(t+1) 0 1 y(t) 0 y(t) 0 0 1 1 0 ' A' A 1 0 1 1 1 0 1 1 1 1 1 1 J. C. Huang, 2004 igital Logic esign 58 J. C. Huang, 2004 igital Logic esign 59

in preparation for expanding it into a truth table of the combinational network required (Step 7): x A(t) (t) A(t+1) (t+1) y(t) 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 J. C. Huang, 2004 igital Logic esign 60 Expand the table into the truth table of the combinational network (Step 7): x A(t) (t) A(t+1) (t+1) A y(t) 0 1 1 1 0 1 1 0 1 0 0 1 0 1 1 1 1 0 1 1 1 1 1 0 1 0 1 1 0 1 1 1 0 1 1 1 1 0 1 1 Excitation table of a type flip-flop Q(t) Q(t+1) (t) 0 0 1 1 1 1 1 1 J. C. Huang, 2004 igital Logic esign 61 Expand the table into the truth table of the combinational network (Step 7): Excitation vs. application table An excitation table is a table that shows what inputs are needed to make the flipflops to change the s as desired. An application table is an excitation table constructed for a particular type of flip-flop. J. C. Huang, 2004 igital Logic esign 62 x A(t) (t) A(t+1) (t+1) A y(t) 0 1 1 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 Excitation table of a type flip-flop Q(t) Q(t+1) (t) 0 0 1 1 1 1 1 1 J. C. Huang, 2004 igital Logic esign 63 Simplify the oolean functions that describe the outputs of the combinational network (Step 8): esign Example A'' A' A A' x' 1 1 1 1 This table can be implemented by a sequential circuit of the form depi cted below using JK flip-flops (Steps 5 and 6): x 1 0 A = x' + A A'' A' A A' x' 1 0 1 1 x 1 0 = x'a + A'' x comb. network KA=? JA=? K=? J=? y=? A'' A' A A' x' 0 1 x 1 0 y = x'a' + xa ' A' A J K J K J. C. Huang, 2004 igital Logic esign 64 J. C. Huang, 2004 igital Logic esign 65

Again, start with the table: x A(t) (t) A(t+1) (t+1) y(t) 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 In preparation for constructing the truth table of the required combinational circuit, expand the table to include the columns for inputs to the flip-flops: x A(t) (t) A(t+1) (t+1) JA KA J K y(t) 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 J. C. Huang, 2004 igital Logic esign 66 J. C. Huang, 2004 igital Logic esign 67 With the help of an excitation table find inputs to flip-flop A (Step 7): x A(t) (t) A(t+1) (t+1) JA KA J K y(t) 0 1 1 1 X 0 1 1 0 1 X 0 0 1 0 1 1 X 0 1 0 1 1 1 1 X 1 0 1 0 X 0 1 0 1 0 X 0 1 1 0 X 1 0 1 1 1 1 0 X 0 1 Excitation table of a JK flip-flop Q(t) Q(t+1) J(t) K(t) 0 X 0 1 1 X 1 0 X 1 1 1 X 0 J. C. Huang, 2004 igital Logic esign 68 With the help of an excitation table find inputs to flip-flop (Step 7): x A(t) (t) A(t+1) (t+1) JA KA J K y(t) 0 1 1 1 X 1 X 0 1 1 0 1 X X 1 0 0 1 0 1 1 X 0 1 X 1 0 1 1 1 1 X 0 X 1 0 1 0 X 1 X 0 1 0 1 0 X X 1 0 1 1 0 X 1 0 X 0 1 1 1 1 0 X 0 X 1 1 Excitation table of a JK flip-flop Q(t) Q(t+1) J(t) K(t) 0 X 0 1 1 X 1 0 X 1 1 1 X 0 J. C. Huang, 2004 igital Logic esign 69 A'' A' A A' Simplify the output s of the combinational network (Step 8): A'' A' A A' x' 1 1 X X x X X JA = x' A'' A' A A' x' X X x X X 0 1 KA = x' x' 1 X X 1 x 1 X X 0 J = x' + A' A'' A' A A' x' X 1 0 X x X 1 1 X K = x + A' A'' A' A A' x' 0 1 x 1 0 y = x'a' + xa J. C. Huang, 2004 igital Logic esign 70 J. C. Huang, 2004 igital Logic esign 71

esign of a 4-bit synchronous up counter The table (at time t) next (at t+1) The block diagram KA 4 A 4 A 3 A 2 A 1 A 4 A 3 A 2 A 1 0 1 combinational 0 1 1 0 network 1 0 1 1 1 1 0 1 0 1 0 1 0 1 JA 1 A 1 J 0 1 0 1 0 1 1 0 A' 1 K 0 1 1 1 1 1 A 2 J 0 1 1 1 1 0 A' 2 K 1 0 1 1 A 3 J 1 1 1 0 1 0 A' 3 K 1 0 1 0 1 0 1 1 A 4 J 1 0 1 1 1 1 A' 4 K 1 1 1 1 0 1 1 1 0 1 1 1 1 0 CP 1 1 1 0 1 1 1 1 J. C. Huang, 2004 1 1 1 1 igital Logic esign 72 J. C. Huang, 2004 igital Logic esign 73 The excitation function for the four JK flip-flops (at time t) A 4 A 3 A 2 A 1 next (at t+1) JA 1 KA 1 JA 2 KA 2 JA 3 KA 3 JA 4 KA 4 A 4 A 3 A 2 A 1 0 1 1 X 0 X 0 X 0 X 0 1 1 0 X 1 1 X 0 X 0 X 1 0 1 1 1 X X X 0 X 1 1 0 1 X 1 X 1 1 X 0 X 0 1 0 1 0 1 1 X 0 X X X 0 1 0 1 0 1 1 0 X 1 1 X X X 0 1 1 1 1 1 1 X X 0 X X 0 1 1 1 1 0 X 1 X 1 X 1 1 X 1 0 1 1 1 X 0 X 0 X X 0 1 1 1 0 1 0 X 1 1 X 0 X X 0 1 0 1 0 1 0 1 1 1 X X X X 0 1 0 1 1 1 1 X 1 X 1 1 X X 0 1 1 1 1 0 1 1 X 0 X X 0 X 0 1 1 0 1 1 1 1 0 X 1 1 X X 0 X 0 1 1 1 0 1 1 1 1 1 X X 0 X 0 X 0 1 1 1 1 X 1 X 1 X 1 X 1 J. C. Huang, 2004 igital Logic esign 74 From the truth table we see that the desired inputs to the flip-flops can be simplified to JA 1 = 1 KA 1= 1 JA 2 = A 1 KA 2= A 1 JA 3 = A 2A 1 KA 3= A 2A 1 JA 4 = A 3A 2A 1 KA 4= A 3A 2A 1 and hence the logic diagram shown in Fig. 7-17. Note that if we let JA 1 = KA 1 = 0 then none of the flip-flop will change its, and therefore we can use it to stop (i.e., to disable) the counter. J. C. Huang, 2004 igital Logic esign 75 esign of a 4-bit synchronous down counter The excitation function for the four JK flip-flops The table next A A A A 1 A A A A 1 (at time t) (at t+1) 4 3 2 4 3 2 1 1 1 1 1 X 1 X 1 X 1 X A A A A A A A A 4 3 2 1 4 3 2 1 1 1 1 1 0 1 X 1 0 X 0 X 0 X 0 1 1 1 1 X X 1 0 X 0 X 1 1 1 1 1 0 X 1 X X 0 X 1 1 1 0 0 1 1 1 1 X 1 X X 1 0 X 0 1 1 1 0 1 0 1 0 1 X 1 0 X X X 0 1 0 1 0 1 0 1 1 1 0 1 1 X X 1 X X 0 1 1 1 0 1 0 1 1 1 0 1 1 0 X 1 X 0 X X 0 1 1 1 0 1 1 0 1 1 1 1 1 X 1 X 1 X X 1 1 1 1 1 1 1 1 0 X 1 0 X 0 X X 0 1 1 1 0 1 0 1 0 1 1 1 X X 1 0 X X 0 1 0 1 0 1 1 1 0 1 1 1 0 1 0 X 1 X X X 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 X 1 X X 1 X 0 1 1 1 0 1 1 1 1 0 1 1 1 X 1 0 X X 0 X 0 1 1 0 1 1 1 1 1 1 0 1 1 0 1 1 X X 1 X 0 X 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 X 1 X 0 X 0 X 0 J. C. Huang, 2004 1 1 1 1 1 1 1 0 igital Logic esign 76 J. C. Huang, 2004 igital Logic esign 77 (at time t) next (at t+1) JA 1 KA 1 JA 2 KA 2 JA 3 KA 3 JA 4 KA 4

From the truth table we see that the desired inputs to the flip-flops can be simplified to JA 1 = 1 KA 1= 1 JA 2 = A' 1 KA 2= A' 1 JA 3 = A' 2A' 1 KA 3= A' 2A' 1 JA 4 = A' 3A' 2A' 1 KA 4= A' 3A' 2A' 1 This is reflected in the logic diagram shown in Fig. 7-18. Note that this design can be directly translated into a T flip -flop impl ementation because the J input to every flip-flop is id entical to its K input. esign verification As the last step in design, analyze the resulting circuit to make sure that it realizes the given table. If there are unused s, make sure that none of them have undesirable properties. For example, at a very minimum, none of them should be an isolated. J. C. Huang, 2004 igital Logic esign 78 J. C. Huang, 2004 igital Logic esign 79 Isolated unused s General structure of a clocked sequential network realization using a PL and clocked flip-flops We need to pay attention to the unused because when the power is turned on, or noise interfere, a sequential circuit might enter an unused. If the unused s are isolated, we will not be able to make the circuit to perform useful function. Requirements on unused s differ. J. C. Huang, 2004 igital Logic esign 80 J. C. Huang, 2004 igital Logic esign 81 A clocked synchronous sequential network realization using a PLA and clocked flip-flops J. C. Huang, 2004 igital Logic esign 82 J. C. Huang, 2004 igital Logic esign 83

J. C. Huang, 2004 igital Logic esign 84 J. C. Huang, 2004 igital Logic esign 85