ECE434a Advanced Digital Systems L06

Slides:



Advertisements
Similar presentations
COE 405 Sequential Circuit Design Review
Advertisements

Datorteknik DigitalCircuits bild 1 Combinational circuits Changes at inputs propagate at logic speed to outputs Not clocked No internal state (memoryless)
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
1 Digital Design: State Machines Timing Behavior Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
RTL Hardware Design by P. Chu Chapter 161 Clock and Synchronization.
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
Embedded Systems Hardware:
1 Design of a Sequence Detector (14.1) Seq. ends in > Z=1 (no reset) Otherwise--> Z=0 Typical input/output sequence Partial Soln. (Mealy Network):
Embedded Systems Hardware: Storage Elements; Finite State Machines; Sequential Logic.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
Rabie A. Ramadan Lecture 3
2017/4/24 1.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Computer Architecture & Operations I
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Chapter #6: Sequential Logic Design
Combinational circuits
Lecture 13 Derivation of State Graphs and Tables
CS 352 Introduction to Logic Design
Lecture 12 Analysis of Clocked Sequential Network
Introduction to Advanced Digital Design (14 Marks)
Sequential Circuit Timing
Instructor: Alexander Stoytchev
Analysis of Clocked Sequential Circuit
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
DR S. & S.S. GHANDHY ENGINEENRING COLLEGE
Sequential Circuit - Counter -
Malik Najmus Siraj Digital Logic Design Malik Najmus Siraj
ECE 434 Advanced Digital System L03
13. Sequential Circuit Timing
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Instructor: Alexander Stoytchev
Sequential Circuits: Flip-Flops
CPE/EE 422/522 Advanced Logic Design L03
DIGITAL ELECTRONICS ТHEME 4: SEQUENTIAL LOGIC CIRCUITS. FLIP- FLOPS – ASYNCHRONOUS AND SYNCHRONOUS, R - S, D, T, J - K FLIP- FLOPS. The value of the outputs.
Sequential logic circuits
Digital Fundamentals with PLD Programming Floyd Chapter 10
Sequential Circuits: Latches
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
CPE/EE 422/522 Advanced Logic Design L02
CSE 370 – Winter Sequential Logic-2 - 1
Elec 2607 Digital Switching Circuits
ECE 434 Advanced Digital System L08
CPE/EE 422/522 Advanced Logic Design L04
ECE 434 Advanced Digital System L04
COE 202: Digital Logic Design Sequential Circuits Part 4
Counters and Registers
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Lecture Part A Combinational Logic Design & Flip Flop
Topics Performance analysis..
ECE 434 Advanced Digital System L05
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
CSE 370 – Winter Sequential Logic - 1
Chapter 8 Counters Changjiang Zhang
Sequential Circuits: Latches
COE 405 Sequential Circuit Design Review
Finite State Machines (FSMs)
Sequential Circuit Analysis & Design
Thought of the Day To be what we are, and to become
Lecture 19 Logistics Last lecture Today
SEQUENTIAL CIRCUITS __________________________________________________
Presentation transcript:

ECE434a Advanced Digital Systems L06 Electrical and Computer Engineering University of Western Ontario

Outline What we know What we do not know Combinational Networks Sequential Networks: Basic Building Blocks, Mealy Networks, Max Frequency, Setup & Hold Times What we do not know Design: Moore Machine Synchronous Design 30/11/2018

Review: Mealy Sequential Networks General model of Mealy Sequential Network (1) X inputs are changed to a new value After a delay, the Z outputs and next state appear at the output of CM (3) The next state is clocked into the state register and the state changes 30/11/2018

An Example: 8421 BCD to Excess3 BCD Code Converter z Q X (inputs) Z (outputs) t3 t2 t1 t0 1 30/11/2018

Review: Mealy Code Converter 30/11/2018

State Assignment Rules 30/11/2018

Review: Sequential Network Timing Code converter X = 0010_1001 => Z = 1110_0011 Changes in X are not synchronized with active clock edge => glitches (false output), e.g. at tb 30/11/2018

Review: Setup and Hold Times For a real D-FF D input must be stable for a certain amount of time before the active edge of clock cycle => Setup time D input must be stable for a certain amount of time after the active edge of the clock => Hold time Propagation time: from the time the clock changes to the time the output changes Manufacturers provide minimum tsu, th, and maximum tplh, tphl 30/11/2018

Review: Maximum Clock Frequency - Max propagation delay through the combinational network - Max propagation delay from the time the clock changes to the flip-flop output changes { = max(tplh, tphl)} - Clock period Example: 30/11/2018

Review: Hold Time Violation Occur if the change in Q fed back through the combinational network and cause D to change too soon after the clock edge Hold time is satisfied if: What about X? Make sure that input changes propagate to the flip-flops inputs such that setup time is satisfied. Make sure that X does not change too soon after the clock. If X changes at time ty after the active edge, hold time is satisfied if 30/11/2018

Moore Sequential Networks Outputs depend only on present state! X = x1 x2... xn Q = Q1 Q2... Qk Z = z1 z2... zm x1 z1 x2 z2 Q xn zm 30/11/2018

General Model of Moore Sequential Machine Outputs depend only on present state! Combinational Network Outputs(Z) Next State Inputs(X) State(Q) Combinational Network State Register Clock X = x1 x2... xn Q = Q1 Q2... Qk Z = z1 z2... zm 30/11/2018

Code Converter: Moore Machine Start S0 1 S1 1 S2 NC C 1 1 NC S3 1 S4 S5 1 C C 1 1 1 S6 NC S7 1 S8 NC C 1 1 S9 S10 1 1 NC NC 1 30/11/2018

Code Converter: Moore Machine S0 S1 1 S2 S3 S4 S5 S8 S7 S6 S9 S10 NC C Start Do we need state S0? How many states does Moore machine have? How many states does Mealy machine have? 30/11/2018

Moore Machine: State Table S1 1 S2 S3 S4 S5 S8 S7 S6 S9 S10 NC C Start PS NS Z X=0 X=1 S0 S1 S2 S3 S4 1 S5 S6 S7 S8 S9 S10 - Note: state S0 could be eliminated (S0 == S9), if S9 was start state! 30/11/2018

Moore Machine Timing X = 0010_1001 => Z = 1110_0011 Moore Mealy 30/11/2018

State Assignments Guidelines to reduce the amount of combinational logic PS NS Z X=0 X=1 S0 S1 S2 S3 S4 1 S5 S6 S7 S8 S9 S10 - Rule I: (S0, S9, S10), (S4, S5), (S6, S7) Rule II: (S1, S2), (S3, S4), (S4, S5), (S6, S7), (S7, S8), (S9, S10) Rule III: (S0, S2, S4, S6, S8, S9) (S1, S3, S5, S7, S10) Q1Q2 00 01 11 10 Q3Q4 00 S9 s10 S8 S0 – 0010 S1 - 0111 …. S10 - 0100 S5 01 S1 S3 S4 11 S0 S2 S7 S6 10 30/11/2018

Moore Machine: Another Example A Converter for Serial Data Transmission: NRZ-to-Manchester Coding schemes for serial data transmission NRZ: nonreturn-to-zero NRZI: nonreturn-to-zero-inverted 0 - same as the previous bit; 1 - complement of the previous bit RZ: return-to-zero 0 – 0 for full bit time; 1 – 1 for the first half, 0 for the second half Manchester 30/11/2018

Moore Network for NRZ-to-Manchester 30/11/2018

Moore Network for NRZ-to-Manchester 30/11/2018

Synchronous Design Use a clock to synchronize the operation of all flip-flops, registers, and counters in the system all changes occur immediately following the active clock edge clock period must be long enough so that all changes flip-flops, registers, counters will have time to stabilize before the next active clock edge Typical design: Control section + Data Section Data registers Arithmetic Units Counters Buses, Muxes, … Sequential machine to generate control signals to control the operation of data section 30/11/2018

An Example Data section // s= n*(n+a) // R1=n, R2=a // R1=s Design flowchart for SMUL operation Design Control section S0 S1 F 0 0 B 0 1 B – C0 1 0 B + C0 1 1 A + B 30/11/2018

Timing Chart for System with Falling-edge Devices 30/11/2018

Timing Chart for System with Rising-edge Devices 30/11/2018

Principles of Synchronous Design Method All clock inputs to flip-flops, registers, counters, etc., are driven directly from the system clock or from the clock ANDed with a control signal Result All state changes occur immediately following the active edge of the clock signal Advantage All switching transients, switching noise, etc., occur between the clock pulses and have no effect on system performance 30/11/2018

Asynchronous Design Disadvantage - More difficult Problems Race conditions: final state depends on the order in which variables change Hazards Special design techniques are needed to cope with races and hazards Advantages = Disadvantages of Synchronous Design In high-speed synchronous design propagation delay in wiring is significant => clock signal must be carefully routed so that it reaches all devices at essentially same time Inputs are not synchronous with the clock – need for synchronizers Clock cycle is determined by the worst-case delay 30/11/2018

To Do Read Textbook chapters 1.8, 1.12 30/11/2018