Outline. CPE/EE 422/522 Advanced Logic Design L03. Review: Clocked D Flip-Flop with Rising-edge Trigger. Sequential Networks

Similar documents
Outline. CPE/EE 422/522 Advanced Logic Design L04. Review: 8421 BCD to Excess3 BCD Code Converter. Review: Mealy Sequential Networks

Unit 11. Latches and Flip-Flops

Fundamentals of Computer Systems

Combinational / Sequential Logic

Advanced Digital Logic Design EECS 303

Logic Design II (17.342) Spring Lecture Outline

RS flip-flop using NOR gate

RS flip-flop using NOR gate

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Experiment 8 Introduction to Latches and Flip-Flops and registers

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Lecture 8: Sequential Logic

Synchronous Sequential Logic. Chapter 5

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Multiplexor (aka MUX) An example, yet VERY useful circuit!

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Review of digital electronics. Storage units Sequential circuits Counters Shifters

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Chapter 5 Sequential Circuits

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

CPS311 Lecture: Sequential Circuits

Final Exam review: chapter 4 and 5. Supplement 3 and 4

1. Convert the decimal number to binary, octal, and hexadecimal.

Asynchronous (Ripple) Counters

Counters

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Logic Design. Flip Flops, Registers and Counters

CS8803: Advanced Digital Design for Embedded Hardware


D Latch (Transparent Latch)

Introduction to Sequential Circuits

Sequential Logic Circuits

Chapter 5 Synchronous Sequential Logic

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Digital Fundamentals: A Systems Approach

Sequential Circuits: Latches & Flip-Flops

Fundamentals of Computer Systems

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

ASYNCHRONOUS COUNTER CIRCUITS

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

UNIT IV. Sequential circuit

Sequential Logic and Clocked Circuits

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Switching Circuits & Logic Design

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

IT T35 Digital system desigm y - ii /s - iii

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Course Administration

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

Chapter 9. Timing Design. (Based on Chapter 7 and Chapter 8 of Wakerly) Data Path Comb. Logic. Reg. Reg. Reg C <= A + B

Combinational vs Sequential

Counter dan Register

CHAPTER 4: Logic Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

Synchronous Sequential Logic

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

Digital Logic Design ENEE x. Lecture 19

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Chapter 11 Latches and Flip-Flops

CHAPTER 1 LATCHES & FLIP-FLOPS

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

MC9211 Computer Organization

Synchronous Sequential Logic

Analysis of Clocked Sequential Circuits

Momentary Changes in Outputs. State Machine Signaling. Oscillatory Behavior. Hazards/Glitches. Types of Hazards. Static Hazards

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

CHAPTER 4: Logic Circuits

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

CHAPTER 11 LATCHES AND FLIP-FLOPS

COMP sequential logic 1 Jan. 25, 2016

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Digital System Design

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

Saturated Non Saturated PMOS NMOS CMOS RTL Schottky TTL ECL DTL I I L TTL

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Part II. Chapter2: Synchronous Sequential Logic

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

EECS 270 Midterm Exam Spring 2011

Section I: Digital System Analysis and Review

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Transcription:

Outline PE/EE 422/522 Advanced Logic Design L3 Electrical and omputer Engineering University of Alabama in Huntsville What we know ombinational Networks Analysis, Synthesis, Simplification, Buiing Blocks, PALs, PLAs, ROMs Sequential Networks: Basic Buiing Blocks What we do not know Design: Mealy, Moore Sequential Network Timing Setup and ho times Max clock frequency 3/6/23 UAH-PE/EE 422/522 AM 2 Sequential Networks Have memory (state) Present state depends not only on the current input, but also on all previous inputs (history) Future state depends on the current input and state Review: locked D Flip-Flop with Rising-edge Trigger X = x x 2... x n Q = Q Q 2... Q k x x 2 x n Z ( t ) = + Q ( t ) = Z = z z 2... z m Q F ( X ( t ), Q ( t )) G ( X ( t ), Q ( t 3/6/23 UAH-PE/EE 422/522 AM 3 )) z z 2 z m Flip-flops are commonly used as storage devices: D-FF, JK-FF, T-FF Next state The next state in response to the rising edge of the clock is equal to the D input before the rising edge 3/6/23 UAH-PE/EE 422/522 AM 4 Review: locked JK Flip-Flop Review: locked T Flip-Flop Next state JK = => no state change occurs JK = => the flip-flop is set to, independent of the current state JK = => the flip-flop is always reset to JK = => the flip-flop changes the state Q + = Q 3/6/23 UAH-PE/EE 422/522 AM 5 Next state T = => the flip-flop changes the state Q + = Q T = => no state change 3/6/23 UAH-PE/EE 422/522 AM 6

Review: S-R Latch, Transparent D-Latch Mealy Sequential Networks General model of Mealy Sequential Network () X inputs are changed to a new value (2) After a delay, the Z outputs and next state appear at the output of M (3) The next state is clocked into the state register and the state changes 3/6/23 UAH-PE/EE 422/522 AM 7 3/6/23 UAH-PE/EE 422/522 AM 8 x An Example: 842 BD to Excess3 BD ode onverter Q z t3 X (inputs) t2 t t t3 Z (outputs) t2 t t State Graph and Table for ode onverter 3/6/23 UAH-PE/EE 422/522 AM 9 3/6/23 UAH-PE/EE 422/522 AM State Assignment Rules Transition Table 3/6/23 UAH-PE/EE 422/522 AM 3/6/23 UAH-PE/EE 422/522 AM 2 2

K-maps Realization 3/6/23 UAH-PE/EE 422/522 AM 3 3/6/23 UAH-PE/EE 422/522 AM 4 ode converter X = _ => Z = _ Sequential Network Timing hanges in X are not synchronized with active clock edge => glitches (false output), e.g. at tb Sequential Network Timing (cont d) Timing diagram assuming a propagation delay of ns for each flip-flop and gate (State has been replaced with the state of three flip-flops) 3/6/23 UAH-PE/EE 422/522 AM 5 3/6/23 UAH-PE/EE 422/522 AM 6 Setup and Ho 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 => Ho time Propagation time: from the time the clock changes to the time the output changes tc max tp max tck tc max Maximum lock 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)} - lock period + t p max tck tsu t ck t c max + t p max + t su Example: t p max = 5 ns, t su t gate = 5 ns = 5 ns, t ck f max = 2 * 5 + 5 + 5 = 5 = = 2 MHz 5 ns ns Manufacturers provide minimum tsu, th, and maximum tplh, tphl 3/6/23 UAH-PE/EE 422/522 AM 7 3/6/23 UAH-PE/EE 422/522 AM 8 3

Ho 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 Ho time is satisfied if: t p min + t c min What about X? t h Make sure that input changes propagate to the flip-flops inputs such that setup time is satisfied. t x t cx max + t su Make sure that X does not change too soon after the clock. If X changes at time ty after the active edge, ho time is satisfied if ty th tcx min 3/6/23 UAH-PE/EE 422/522 AM 9 Moore Sequential Networks x x 2 x n Outputs depend only on present state! Z ( t ) = + Q ( t ) = X = x x 2... x n Q = Q Q 2... Q k Z = z z 2... z m Q F( Q ( t )) G ( X ( t ), Q ( t 3/6/23 UAH-PE/EE 422/522 AM 2 )) z z 2 z m Inputs(X) General Model of Moore Sequential Machine Outputs depend only on present state! ombinational Network Next State lock State Register ombinational Network State(Q) X = x x 2... x n + Q ( t ) = G ( X ( t ), Q ( t )) Q = Q Q 2... Q k Z ( t ) = F( Q ( t )) Z = z z 2... z m Outputs(Z) ode onverter: Moore Machine S S Start S 3/6/23 UAH-PE/EE 422/522 AM 2 3/6/23 UAH-PE/EE 422/522 AM 22 ode onverter: Moore Machine Moore Machine: State Table Start S S S Do we need state S? How many states does Moore machine have? How many states does Mealy machine have? PS S S S X= S S S S NS X= S S - Z S Start S S Note: state S cou be eliminated (S == ), if was start state! 3/6/23 UAH-PE/EE 422/522 AM 23 3/6/23 UAH-PE/EE 422/522 AM 24 4

Moore Machine Timing State Assignments X = _ => Z = _ Guidelines to reduce the amount of combinational logic PS NS X= X= Z S S Moore Mealy Rule I: (S,, S), (, ), (, ) Rule II: (S, ), (, ), (, ), (, ), (, ), (, S) Rule III: (S,,,,, ) (S,,,, S) QQ2 S S -. S - Q3Q4 s S S S S S S S S - S 3/6/23 UAH-PE/EE 422/522 AM 25 3/6/23 UAH-PE/EE 422/522 AM 26 Moore Machine: Another Example Moore Network for NRZ-to-Manchester A onverter for Serial Data Transmission: NRZ-to-Manchester oding schemes for serial data transmission NRZ: nonreturn-to-zero NRZI: nonreturn-to-zero-inverted in input sequence the bit transmitted is the same as the previous bit; in input sequence transmit the complement of the previous bit RZ: return-to-zero for full bit time; for the first half, for the second half Manchester 3/6/23 UAH-PE/EE 422/522 AM 27 3/6/23 UAH-PE/EE 422/522 AM 28 Moore Network for NRZ-to-Manchester 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: ontrol section + Data Section Sequential machine to generate control signals to control the operation of data section Data registers Arithmetic Units ounters Buses, Muxes, 3/6/23 UAH-PE/EE 422/522 AM 29 3/6/23 UAH-PE/EE 422/522 AM 3 5

+ Data section // s= n*(n+a) // R=n, R2=a // R=s Design flowchart for SMUL operation Design ontrol section S S F B B B + BR A + B An Example LD(BR) DE(BR) 6 dec LD(R) RD(R) 6 BR rd rd LD(L) L(L) RD(BR) 6 R cl 6 6 L A 6 F 5.. ALU F 6 R2 6 6 B LD(R2) rd RD(R2) S S 6 Timing hart for System with Falling-edge Devices LD(A) A rd cl RD(A) L(A) 3/6/23 UAH-PE/EE 422/522 AM 3 3/6/23 UAH-PE/EE 422/522 AM 32 Timing hart for System with Rising-edge Devices Method Principles of Synchronous Design 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 3/6/23 UAH-PE/EE 422/522 AM 33 3/6/23 UAH-PE/EE 422/522 AM 34 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 lock cycle is determined by the worst-case delay Read To Do Textbook chapters.6,.7,.8,.,.,.2 3/6/23 UAH-PE/EE 422/522 AM 35 3/6/23 UAH-PE/EE 422/522 AM 36 6