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

Similar documents
EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

FSM model for sequential circuits

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

Logic Design II (17.342) Spring Lecture Outline

Finite State Machine. By : Ali Mustafa

Lecture 10: Synchronous Sequential Circuits Design

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

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

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

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

Finite State Machine (FSM)

Homework #4. CSE 140 Summer Session Instructor: Mohsen Imani. Only a subset of questions will be graded

Chapter 6. Synchronous Sequential Circuits

Analysis of clocked sequential networks

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

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

Sequential Logic Circuits

Lecture 3 Review on Digital Logic (Part 2)

EGR224 F 18 Assignment #4

or 0101 Machine

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:

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

EEE2135 Digital Logic Design

EE 209 Logic Cumulative Exam Name:

FYSE420 DIGITAL ELECTRONICS

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

Chapter 4. Sequential Logic Circuits

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

CprE 281: Digital Logic

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

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

Generalized FSM model: Moore and Mealy

Chapter 4 Part 2 Sequential Circuits

Lecture 17: Designing Sequential Systems Using Flip Flops

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

State & Finite State Machines

Synchronous Sequential Logic

Digital Design 2010 DE2 1

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Digital Circuits and Systems

State and Finite State Machines

Synchronous Sequential Circuit Design. Digital Computer Design

CPE100: Digital Logic Design I

Sequential Synchronous Circuit Analysis

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

State Machines ELCTEC-131

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

Lecture 8: Sequential Networks and Finite State Machines

Chapter 6 Introduction to state machines

CE1911 LECTURE FSM DESIGN PRACTICE DAY 1

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

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

Sequential logic and design

Chapter 14 Sequential logic, Latches and Flip-Flops

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

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

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

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

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

Digital Logic Design - Chapter 5

State & Finite State Machines

ECE380 Digital Logic. Synchronous sequential circuits

Digital Logic Design - Chapter 4

PGT104 Digital Electronics. PGT104 Digital Electronics

Chapter 3 Digital Logic Structures

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Sequential Circuit Design

Digital Design. Sequential Logic

Sequential Circuit Analysis

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Unit 7 Sequential Circuits (Flip Flop, Registers)

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

EECS150 - Digital Design Lecture 16 Counters. Announcements

ASYNCHRONOUS SEQUENTIAL CIRCUITS

Problem Set 9 Solutions

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

CSE140: Digital Logic Design Registers and Counters

Topic 8: 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

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

Example: vending machine

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

Figure 1-1 Basic Gates

Digital Electronics Sequential Logic

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

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

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

Lecture 7: Sequential Networks

Chapter 7. Sequential Circuits Registers, Counters, RAM

Practice Final Exam Solutions

Fundamentals of Digital Design

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

Show that the dual of the exclusive-or is equal to its compliment. 7

CPE100: Digital Logic Design I

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

Transcription:

ed Sequential Circuits 2 Contents nalysis by signal tracing & timing charts State tables and graphs General models for sequential circuits sequential parity checker Reading Unit 3 asic unit Unit : Latch & FFs UNIT 3 NLYSIS OF CLOED SEUENTIL CIRCUITS asically, no inputs Simple sequential Ckt Unit 2: Registers & Counters Complex sequential Ckt Units 3-5: FSM Iris Hui-Ru Jiang Spring 2 ed sequential ckt Put it all together Unit 6: Summary nalysis of ed Sequential Circuits 3 Find the output sequence resulting from a given input one Draw a timing chart to show inputs, clock, FF s, outputs. ssume an initial of FFs (reset to ) 2. Determine the circuit outputs & FF inputs for st input pattern 3. Determine the new FF s after the next active clock edge 4. Determine the outputs for the new s 5. Repeat 2 4 for each input pattern 4 Signal Tracing and Timing Charts Current s s Current inputs trigger Current outputs ed sequential ckt ed sequential ckt

5 Type I: Moore Machine Moore machine: the output depends only on the present The output which corresponds to a given input appears until after the active clock edge D ed sequential ckt D = () () () () 6 Type II: Mealy Machine Mealy machine: the output depends on both the present and on the inputs False outputs may occur Glitches and spikes () () False output ed sequential ckt False output K J K J How to Construct the State Table? 8 The table specifies 7 State Tables and Graphs Output Input Procedure to construct the table for a given circuit. Determine the flip-flop input equations and the output equations from the circuit 2. Derive the next- equation for each FF from its input equations 3. Plot a next- map for each flip-flop 4. Combine these maps to form the table ed sequential ckt ed sequential ckt

9 Recap Next-State Equations Type D FF = D Example: Moore Machine (/2). D = D = = 2. = = 3. D-CE FF = DCE CE' T FF = T S-R FF = S R' (SR = ) J-K FF = J K D D 4. = = ed sequential ckt Example: Moore Machine (2/2) = = State assignment S S 2 Example: Mealy Machine (/3).&2. = J K = = J K = () = = 3. K J K J S S = = S S ed sequential ckt S S output () () () () ()

Example: Mealy Machine (2/3) Example: Mealy Machine (3/3) 3 / 4 / / S / / / / S / / / / S / / S / / / State graph = = 4. ed sequential ckt = = State assignment S S = = S S S S S output () = = ed sequential ckt () () False output False output 5 x i y i Example: Serial dder s i c i c i D x i y i c i c i s i /// /// x i y i /s i S / S / S : c i =; S : c i = Carry_out (c i ) is latched in the DFF The latched Carry_out will be added with the next x i and y i x i y i c i c i s i glitch 6 S S Example: Multiple Inputs and Outputs 2 = S S S ed sequential ckt S S S S S S : Input = 3 2 2 3 2 2 Output =? (check by yourself) State transition : S S output ( 2 ) 2 =, / / S / / / / / / / / / / S / //

General Model for Mealy Machines 7 General Models Moore vs. Mealy 8 n output is a function of s and inputs 2 m Combinational Subcircuit 2 n D D 2 D k ed sequential ckt ed sequential ckt General Model for Moore Machines 9 n output is a function of only s 2 m Combinational Subcircuit (For Flip-Flop Inputs) D D 2 Combinational Subcircuit (For Outputs) 2 n 2 Case Study: Sequential Parity Checker D k ed sequential ckt ed sequential ckt

Parity Checker (/3) Parity Checker (2/3) 2 Error detection: add an extra bit (parity bit) when transmitting or storing binary data When the total # of bits in the block (data bits parity bit) is odd (even), we say the parity is odd (even) Even parity Odd parity 22 Design an odd-parity checker = if total # of s is odd Parity = if total # of s is even (Data Input) Checker = an error occurs in odd-parity protocol Initially, = Timing chart of the odd parity checker (active-low) Data bits Parity bits = ed sequential ckt ed sequential ckt Parity Checker (3/3) Homework for Unit 3 23 = S S State graph S = Even State table = = = = S S S S S = Odd output () = Implementation T = = 24 Problems 3.23 3.25 Hint: data should be ready before the clock edge Homework #5: Units 2 3 Due am May 25, 2 uiz #5: due day of Homework #5 ed sequential ckt ed sequential ckt