Models for representing sequential circuits

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

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

Example: vending machine

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

Chapter 6. Synchronous Sequential Circuits

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Different encodings generate different circuits

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

CprE 281: Digital Logic

Synchronous Sequential Circuit Design. Digital Computer Design

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec09 Counters Outline.

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

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

EEE2135 Digital Logic Design

FSM model for sequential circuits

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

Sequential logic and design

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

Lecture 10: Synchronous Sequential Circuits Design

Finite State Machine (FSM)

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

CSE140L: Components and Design Techniques for Digital Systems Lab. FSMs. Instructor: Mohsen Imani. Slides from Tajana Simunic Rosing

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

6. Finite State Machines

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

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

Design of Datapath Controllers

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

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters


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

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

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

Finite State Machine. By : Ali Mustafa

Digital Logic Design - Chapter 5

Generalized FSM model: Moore and Mealy

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

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

Sequential Logic. Road Traveled So Far

Digital Circuit Engineering

Clocked Synchronous State-machine Analysis

Laboratory Exercise #11 A Simple Digital Combination Lock

Digital Design. Sequential Logic

Digital Control of Electric Drives

FYSE420 DIGITAL ELECTRONICS

Analysis of Clocked Sequential Circuits

14.1. Unit 14. State Machine Design

EECS150 - Digital Design Lecture 16 Counters. Announcements

Sequential Synchronous Circuit Analysis

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

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

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

ELCT201: DIGITAL LOGIC DESIGN

Digital Circuit Engineering

ALU, Latches and Flip-Flops

Philadelphia University Student Name: Student Number:

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

Chapter 7. Sequential Circuits Registers, Counters, RAM

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Lecture 8: Sequential Networks and Finite State Machines

Review Problem 1. should be on. door state, false if light should be on when a door is open. v Describe when the dome/interior light of the car

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

FSM Optimization. Counter Logic Diagram Q1 Q2 Q3. Counter Implementation using RS FF 10/13/2015

Ch 9. Sequential Logic Technologies. IX - Sequential Logic Technology Contemporary Logic Design 1

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 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Sequential Circuit Design

14:332:231 DIGITAL LOGIC DESIGN

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

Topic 8: Sequential Circuits

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

or 0101 Machine

ECE 341. Lecture # 3

Lecture 7: Logic design. Combinational logic circuits

CSC 322: Computer Organization Lab

EGR224 F 18 Assignment #4

Logical design of digital systems

FSM Examples. Young Won Lim 11/6/15

Synchronous Sequential Circuit Design

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

EECS 270 Midterm 2 Exam Answer Key Winter 2017

Sequential Logic. Handouts: Lecture Slides Spring /27/01. L06 Sequential Logic 1

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

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

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

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

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

Digital Electronics Sequential Logic

CPE100: Digital Logic Design I

CE1911 LECTURE FSM DESIGN PRACTICE DAY 1

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

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

Analysis of clocked sequential networks

Chapter 3. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 3 <1>

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006

Asynchronous sequence circuits

Transcription:

Sequential Circuits Models for representing sequential circuits Finite-state machines (Moore and Mealy) Representation of memory (states) Changes in state (transitions) Design procedure State diagrams Implementation choice: counters, shift registers, etc State transition table State encoding Combinational logic» Next state functions» Output functions

Abstraction of State Elements Divide circuit into combinational logic and state Localize feedback loops and make it easy to break cycles Implementation of storage elements leads to various forms of sequential logic

Forms of Sequential Logic Asynchronous sequential logic state changes occur whenever state inputs change (elements may be simple wires or delay elements) Synchronous sequential logic state changes occur in lock step across all storage elements (using a periodic waveform - the clock)

Mealy and Moor.. Mealy: output depends on input and state Moor: output depends only on state

FSM Representations States: determined by possible values in sequential storage elements Transitions: change of state Clock: controls when state can change by controlling storage elements Sequential Logic Sequences through a series of states Based on sequence of values on input signals Clock period defines elements of sequence

Example: Sequence Detector Desired A circuit that outputs when a specific sequence is detected Assume (for rest of the semester) sequential circuit for timevarying computation unless otherwise specified Pattern to detect: 0101 input:.01010100010101010 Overlap or not?

Can Any Sequential System be Represented with a State Diagram? Shift Register Input value shown on transition arcs Output values shown within state node

Counter Example Shift Register Input determines next state

Counters are Simple Finite State Machines Counters Proceed thru well-defined state sequence in response to enable Many types of counters: binary, BCD, Gray-code 3-bit up-counter: 000, 001, 010, 011, 100, 101, 110, 111, 000,... 3-bit down-counter: 111, 110, 101, 100, 011, 010, 001, 000, 111,... module binary_upcntr (q, clk) inputs clk; outputs [2:0] q; reg [2:0] q, p; always @(q) // Next state case (q) 3 b000: p = 3 b001; 3 b001: p = 3 b010; 3 b111: p = 3 b000; endcase always @(posedge clk) // Update state q <= p; endmodule

More Complex Counter Example Complex Counter Repeats five states in sequence Not a binary number representation Step 1: Derive the state transition diagram Count sequence: 000, 010, 011, 101, 110 Step 2: Derive the state transition table from the state transition diagram! " # $ "$ #$ % % % % % % % % % &'( '& )*&' '

More Complex Counter Example (cont d) Step 3: K-maps for Next State Functions $ "$ #$ # # # " " " $# "$"($#(( #$"(

Self-Starting Counters (cont d) Re-deriving state transition table from don't care assignment $ "$ #$ # # # " " "! " # $ "$ #$

Self-Starting Counters Start-up States At power-up, counter may be in an unused or invalid state Designer must guarantee it (eventually) enters a valid state Self-starting Solution Design counter so that invalid states eventually transition to a valid state May limit exploitation of don't cares *,* -,'

State Minimization Fewer states may mean fewer state variables High-level synthesis may generate many redundant states Two state are equivalent if they are impossible to distinguish from the outputs of the FSM, i. e., for any input sequence the outputs are the same Two conditions for two states to be equivalent: 1) Output must be the same in both states 2) Must transition to equivalent states for all input combinations

Sequential Logic Summary Models for representing sequential circuits Abstraction of sequential elements Finite state machines and their state diagrams Inputs/outputs Mealy, Moore, and synchronous Mealy machines Finite state machine design procedure Deriving state diagram Deriving state transition table Determining next state and output functions Implementing combinational logic