Q: Examine the relationship between X and the Next state. How would you describe this circuit? A: An inverter which is synched with a clock signal.

Similar documents
EET 310 Flip-Flops 11/17/2011 1

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

Digital Circuits ECS 371

CHW 261: Logic Design

Synchronous Sequential Circuit Design

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

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

Chapter 7 Sequential Logic

Sequential Circuit Design

ELE2120 Digital Circuits and Systems. Tutorial Note 10

CSCI 2150 Intro to State Machines

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

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

6 Synchronous State Machine Design

or 0101 Machine

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

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Chapter 14 Sequential logic, Latches and Flip-Flops

Digital Logic Design - Chapter 4

Digital Circuits and Systems

ELCT201: DIGITAL LOGIC DESIGN

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

Finite State Machine. By : Ali Mustafa

Digital Electronic Meters

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

Design at the Register Transfer Level

EE 209 Logic Cumulative Exam Name:

Digital Fundamentals

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

Learning Objectives:

Lecture 10: Synchronous Sequential Circuits Design

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

EE 209 Spiral 1 Exam Solutions Name:

14.1. Unit 14. State Machine Design

Lecture 14 Finite state machines

Chapter 5 Synchronous Sequential Logic

CSE370 HW6 Solutions (Winter 2010)

Sequential Circuit Analysis

CprE 281: Digital Logic

Synchronous Sequential Logic Part I

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

ELCT201: DIGITAL LOGIC DESIGN

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

Clocked Synchronous State-machine Analysis

Introduction to Digital Logic

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Different encodings generate different circuits

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

Topic 8: Sequential Circuits

Total time is: 1 setup, 2 AND, 3 XOR, 1 delay = (1*1) + (2*2) + (3*3) + (1*1) = 15ns

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

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

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II

Chapter 6 Introduction to state machines

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

ELE2120 Digital Circuits and Systems. Tutorial Note 9

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

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

Design of Sequential Circuits

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

Exam for Physics 4051, October 31, 2008

Sequential Circuits Sequential circuits combinational circuits state gate delay

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Stop Watch (System Controller Approach)

Analysis of Clocked Sequential Circuits

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

15.1 Elimination of Redundant States

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Digital Logic Design - Chapter 5

Digital Fundamentals

Lecture 8: Sequential Networks and Finite State Machines

Synchronous Sequential Logic

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

Synchronous Sequential Circuit Design. Digital Computer Design

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

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

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Menu. Excitation Tables (Bonus Slide) EEL3701 EEL3701. Registers, RALU, Asynch, Synch

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

EECS150 - Digital Design Lecture 16 Counters. Announcements

PGT104 Digital Electronics. PGT104 Digital Electronics

EXPERIMENT Traffic Light Controller

Module - 19 Gated Latches


Let s now begin to formalize our analysis of sequential machines Powerful methods for designing machines for System control Pattern recognition Etc.

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

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

Written exam with solutions IE1204/5 Digital Design Monday 23/

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Philadelphia University Student Name: Student Number:

Transcription:

/2/2 OF 7 Next, let s reverse engineer a T-Flip flop Prob. (Pg 529) Note that whenever T is equal to, there is a state change, otherwise, there isn t. In this circuit, (x) determines whether the output sets or clears. T x y x y = m( 0, 3) From the table, we can now create the state diagram. Let s make sure that the diagram is correct. input => 2 = 2 exits which is what you have. : Examine the relationship between and the Next state. How would you describe this circuit? A: An inverter which is synched with a clock signal.

/2/2 2 OF 7 Example: Let s now design a synchronous circuit using clocked T Flip-flops and the switching equations: z T x y 2 T x y 2 st, find the state table using the state assignments shown to the right: Note: When designing digital systems, if in doubt, start with a state table, Input Present State Logic Next State y 2 y 0 A 0 0 B 0 3 C 2 D 0 x y 2 y T 2 T Y 2 Y 0 A 0 0 0 0 0 0 A 0 B 0 0 C 0 D 0 0 0 0 D 0 C 0 0 B A 0 0 C B 0 0 0 0 A D 0 0 0 0 A C 0 0 C Let s examine a very small portion of the table. Note the 0 in the MSB Present State to the left. The associated MSB Next State value is a. The only way that could happen is if the T-FF to which the states belong, had a on its input to allow the toggle (see the T-FF transition table presented earlier). Now look at the LSB Present and Next States. There isn t a change in state (they are both s), and the only way that could have happened is if the associated T-FF had a 0 on its T input (which would have forced the HOLD condition.

/2/2 3 OF 7 Finally, let s see what the circuit (the logic diagram) would look like. The circuit would naturally change if different FF s are chosen. Whatever creates the minimum, most reliable, circuit should be what the designer should strive for! Example: Design a standard, synchronous state machine which meets the following specifications: When x= ± Hold in current state x= ± Count 0--2-0--2 etc x= ± Count 2--0-2--0 etc x= ± Go to state 3 uite often a state diagram can help make the leap from a set of count sequences to the state table much easier and more accurate. So, the st step this time is to create the State Diagram which demonstrates the specified state sequences from the specs. (NET PAGE) (Note: This is obviously the first design we worked with but we are going to take it further.)

/2/2 4 OF 7 Remember that we had to add two extra transitions from state 3 to state 0 (Could have chosen state or 2 instead). The reason is that state 3 failed the # of exit arrows test. 2 # inputs 2 2 4 exits/s tat e Note that the legend indicates that the input is 2 bits wide. Note It is not a good idea to use yellow in your diagrams, as can be seen here!) Using the state assignment table and the state diagram, create the State Design Table. This is where the logic needed to implement the design in a circuit is determined. For this design a T-excitation table as well as a JK-excitation table are helpful. Legend x x 0 Input Present State Next State Logic 0, 2 3 Goto state 3 Count Down Count up Hold x x 0 y y 0 Y Y 0 T J 0 K 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 JK Transition Table p n J K 0 0 0 0 0 0

/2/2 5 OF 7 With the State Design Table completed, it is necessary to K-map each of the logic columns (T, J, and K) so that the gate structure necessary to control each FF can be determined. y y0 x x0 0 4 K0 2 5 3 3 2 7 6 5 4 x x0 y y0 x x0 0 x0 y J0 4 2 5 3 2 7 6 3 5 4 8 9 x x0 8 9 y y0 x y x x0 0 3 2 x0 y y0 4 5 7 6 x x0 y T 2 3 5 4 x y y0 8 9 x x0 y K xx xx x x 0 0 0 0 J x y x y 0 0 T x y y x x y x x 0 0 0 0 0 y x y y The resulting circuit follows on the next page.

/2/2 6 OF 7 x Pre' Clr' inputs Used to set states x0 to varify circuit. Tie high otherwise y y' y0 y0' x' x0' '0' decoded LED's x x0 input y y0 state output clock J Pre clk K Clr J Pre clk K Clr y y' y0 y0' x' x x0' x0

/2/2 7 OF 7 What a monster of a circuit! Can it be made easier? It s possible. We can make two changes. First, we can see what will happen if we use a JK FF vice a T FF for the MSB. The other thing is that we can use the illegal states which we noted (rows 7 and in the table) to try and simplify the controlling expressions. Goto state Count Down Count Up Hold Input Present State Next State Logic x x 0 y y 0 Y Y 0 J K J 0 K 0 0 0 0 0 0 0 0 x 0 0 0 0 0 0 x 0 0 0 0 0 x 0 0 0 0 x 0 0 0 0 0 0 0 x 0 0 0 x 0 0 0 0 x 0 0 0 0 0 0 x 0 0 0 0 0 0 x 0 0 0 x 0 0 0 x 0 x 0 0 x 0 x 0 0 JK Transition Table p n J K 0 0 0 0 0 0 We will leave the completion of this task to the student. Have Fun!!!