ECE380 Digital Logic. Synchronous sequential circuits

Similar documents
CprE 281: Digital Logic

FYSE420 DIGITAL ELECTRONICS

Chapter 6. Synchronous Sequential Circuits

Lecture 10: Synchronous Sequential Circuits Design

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

Logical design of digital systems

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

Mealy & Moore Machines

ECE380 Digital Logic

Sequential Synchronous Circuit Analysis

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

Finite State Machine. By : Ali Mustafa

EEE2135 Digital Logic Design

or 0101 Machine

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

Chapter 14 Sequential logic, Latches and Flip-Flops

Analysis and Design of Sequential Circuits: Examples

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

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

Digital Circuits and Systems

Chapter 6 Introduction to state machines

Last lecture Counter design Finite state machine started vending machine example. Today Continue on the vending machine example Moore/Mealy machines

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

EGR224 F 18 Assignment #4

Finite State Machine (FSM)

Chapter 7. Synchronous Sequential Networks. Excitation for

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

Different encodings generate different circuits

Synchronous Sequential Circuit Design. Digital Computer Design

Chapter 15 SEQUENTIAL CIRCUITS ANALYSIS, STATE- MINIMIZATION, ASSIGNMENT AND CIRCUIT IMPLEMENTATION

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

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

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

Clocked Synchronous State-machine Analysis

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

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

Digital Logic Design - Chapter 5

Introduction To Resonant. Circuits. Resonance in series & parallel RLC circuits

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

Synchronous Sequential Circuit Design

Topic 8: Sequential Circuits

CE1911 LECTURE FSM DESIGN PRACTICE DAY 1

Chapter 5 Synchronous Sequential Logic

EXPERIMENT Traffic Light Controller

Sequential logic and design

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

Lecture 14 Finite state machines

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

L10 State Machine Design Topics

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

CPE100: Digital Logic Design I

Sequential Circuit Analysis

Lecture 17: Designing Sequential Systems Using Flip Flops

EE 209 Logic Cumulative Exam Name:

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

Digital Circuits ECS 371

Synchronous Sequential Logic

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

Synchronous Sequential Logic Part I

15.1 Elimination of Redundant States

Digital Design 2010 DE2 1

IE1204 Digital Design. L10: State Machines (Part 2) Masoumeh (Azin) Ebrahimi Elena Dubrova

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

Lecture (08) Synchronous Sequential Logic

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Sequential Circuit Design

EE 209 Spiral 1 Exam Solutions Name:

Lecture 8: Sequential Networks and Finite State Machines

Analysis of Clocked Sequential Circuits

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

Example: vending machine

ELCT201: DIGITAL LOGIC DESIGN

Chapter 7 Sequential Logic

FSM model for sequential circuits

EECS150 - Digital Design Lecture 16 Counters. Announcements

ELCT201: DIGITAL LOGIC DESIGN

Models for representing sequential circuits

Generalized FSM model: Moore and Mealy

Digital Design. Sequential Logic

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Adders allow computers to add numbers 2-bit ripple-carry adder

Fundamentals of Digital Design

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

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

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

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

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

14.1. Unit 14. State Machine Design

Chapter 4 Part 2 Sequential Circuits

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

Problem Set 9 Solutions

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

CpE358/CS381. Switching Theory and Logical Design. Class 16

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

Analysis of clocked sequential networks

ECE 341. Lecture # 3

State & Finite State Machines

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

Transcription:

ECE38 Digital Logic Synchronous Sequential Circuits: State Diagrams, State Tables Dr. D. J. Jackson Lecture 27- Synchronous sequential circuits Circuits here a clock signal is used to control operation are called synchronous sequential circuits The term active clock edge refers to the clock edge that causes a change in state (positive or negative) Realied using combinational logic and one or more flip-flops To models for synchronous sequential circuits Moore model: circuit outputs depend only on the present state of the circuit Mealy model: circuit outputs depend on the present state of the circuit and the primary inputs Sequential circuits are also called finite state machines (FSM) Dr. D. J. Jackson Lecture 27-2

Moore versus Mealy machines Combinational circuit Flip-flops Combinational circuit f clock Moore state machine Combinational circuit Flip-flops Combinational circuit f clock Mealy state machine Dr. D. J. Jackson Lecture 27-3 Basic design steps We ill introduce techniques for sequential circuit design via a simple example Design a circuit that meets the folloing specifications: The circuit has one input,, and one output, All changes in the circuit occur on the positive edge of the clock signal Output = if the input as during the to immediately preceding clock cycles From this specification it is obvious that cannot depend solely of the value of Dr. D. J. Jackson Lecture 27-4 2

Sequences of signals The example input and output sequence belo aides in the description of the circuit Clock cycle t t t 2 t 3 t 4 t 5 t 6 t 7 t 8 t 9 t Dr. D. J. Jackson Lecture 27-5 State diagram The first step in designing an FSM is determining ho many states are needed and hich transitions are possible from one state to another No preset procedure for this The designer must think about hat the circuit is to accomplish A good beginning is to define a reset state that the circuit should enter hen poer is applied or hen a reset signal is received Dr. D. J. Jackson Lecture 27-6 3

State diagram For our example, assume the starting state is called A As long as =, the circuit should do nothing and = reset = A/= Dr. D. J. Jackson Lecture 27-7 State diagram When =, the circuit should remember this by transitioning to a ne state (B) This transition should occur at the next positive edge of the clock signal reset = A/= = B/= Dr. D. J. Jackson Lecture 27-8 4

State diagram When in state B and =, the circuit should remember this by transitioning to a ne state (C) reset = A/= = B/= C/= = Dr. D. J. Jackson Lecture 27-9 Complete state diagram reset = = A/= = = B/= = C/= Moore model state diagram = Dr. D. J. Jackson Lecture 27-5

State table A state diagram describes circuit functionality, but does not describe circuit implementation Translation to a tabular form is necessary The state table should contain All transitions from each present state to each next state for all valuations of the input signals The output,, is specified ith respect to the present state Present state Next state Output = = A A B B A C C A C Dr. D. J. Jackson Lecture 27- State assignment The states are defined in terms of variables (A, B, and C) Each state is represented by a particular valuation of state variables Each state variable is implemented ith a flip-flop Since three states have to be realied, it is sufficient to use to state variables Use y 2 y for the present state (present state variables) Use Y 2 Y for the next state (next state variables) Dr. D. J. Jackson Lecture 27-2 6

State-assigned table Present state y 2 y Next state = = Y 2 Y Y 2 Y Output A B C dd dd d Note the addition of the y 2 y = state. Although it is not used, it is needed for completeness. Dr. D. J. Jackson Lecture 27-3 Next-state and output maps K-maps are constructed from the state table for: Circuit outputs ( in this case) Inputs for the flip-flops (next-state K-maps) Constructing the next-state maps depends on the type of flip-flop (D, T, JK) used for the implementation D is the most straightforard: next-state maps are constructed directly from the state table since (t+)= + =D T and JK implementations ill be covered later Dr. D. J. Jackson Lecture 27-4 7

State table and next-state maps Present state y 2 y Next state = = Output Y 2 Y Y 2 Y A B C dd dd d y 2 y d d Y =y y 2 y 2 y d d Y 2 =(y +y 2 ) Dr. D. J. Jackson Lecture 27-5 State table and output map Present state y 2 y Next state = = Output Y 2 Y Y 2 Y A B C dd dd d y y 2 d =y 2 Dr. D. J. Jackson Lecture 27-6 8

Circuit diagram Y 2 D y 2 Y D y Clock Resetn Dr. D. J. Jackson Lecture 27-7 Timing diagram Clock t t t t t t t t t t t 2 3 4 5 6 7 8 9 y y 2 Dr. D. J. Jackson Lecture 27-8 9