Digital Design Jeff Kautzer Univ Wis Milw.

Slides:



Advertisements
Similar presentations
11/12/2004EE 42 fall 2004 lecture 311 Lecture #31 Flip-Flops, Clocks, Timing Last lecture: –Finite State Machines This lecture: –Digital circuits with.
Advertisements

CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
Circuits require memory to store intermediate data
Embedded Systems Hardware:
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
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.
Flip-Flops.
Sequential Networks Two major classes of Sequential Circuits 1.Fundamental Mode – A sequential circuit where: Only one input is allowed to change at any.
Chap 4. Sequential Circuits
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Counters.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Lecture #17: Clocked Synchronous State-Machine Analysis
Computer Architecture: Intro Beginnings, cont.
Overview Part 1 – The Design Space
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Digital Design Jeff Kautzer Univ Wis Milw.
EI205 Lecture 8 Dianguang Ma Fall 2008.
ANALYSIS OF SEQUENTIAL CIRCUITS
Sequential Logic Combinational logic:
EMT 351/4 DIGITAL IC DESIGN Week # Synthesis of Sequential Logic 10.
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Timing issues.
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Digital Fundamentals Floyd Chapter 7 Tenth Edition
CSCE 211: Digital Logic Design
Appendix B The Basics of Logic Design
Basic Delay in Gates Definitions
CS Chapter 3 (3A and ) – Part 4 of 5
Overview Part 1 – The Design Space
ECE 434 Advanced Digital System L03
Assistant Prof. Fareena Saqib Florida Institute of Technology
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.
332:437 Lecture 12 Finite State Machine Design
Digital Fundamentals with PLD Programming Floyd Chapter 10
Sequential Circuits: Latches
CPE/EE 422/522 Advanced Logic Design L02
Edge-Triggered FF Operation
Chapter 7 Latches, Flip-Flops, and Timers
CSE 370 – Winter Sequential Logic-2 - 1
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
CSE 140L Discussion Finite State Machines.
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Topics Performance analysis..
ECE 434 Advanced Digital System L05
Instructor: Alexander Stoytchev
ECE434a Advanced Digital Systems L06
Dr. Clincy Professor of CS
CSE 370 – Winter Sequential Logic-2 - 1
Sequential Circuits: Latches
State Machine Design State Machine Design Digital Electronics
Chapter 5 – Sequential Circuits
Sequential Circuit Analysis & Design
ECE 352 Digital System Fundamentals
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
SEQUENTIAL CIRCUITS __________________________________________________
CSE 370 – Winter Sequential Logic-2 - 1
William Stallings Computer Organization and Architecture
Presentation transcript:

Digital Design Jeff Kautzer Univ Wis Milw

Basic Combinatorial Timing Parameters TpHL(TpLH): Propagation Delay from High to Low (Low to High) Logic Level Usually measured between the 10% and 90% total voltage transition points. Tpd or Tp: Propagation Delay usually stated as worst case of TpHL and TpLH. Tott or Tout: Output Transition Time. For many families (HC, HCT, etc), gate delays are stated with separate specifications for logical output value generation (Tpd) plus physical output voltage transition (Tott). Need to sum these for total prop delay !! TpzH(TpzL): Propagation Delay from High Impedance to High (Low) Logic Level TpHz(TpLz): Propagation Delay from High (Low) Logic Level to High Impedance

Review: Sequential Logic Building Blocks

Basic Sequential Timing Parameters Tsu: Setup Time, Data must be stable this min time prior to CLK edge Th: Hold Time, Data must remain stable this min time after CLK edge Td: CLK to Q or Output Delay, Time for Data Propagation to Q Tset/Treset: Control Input to Output Change delay Tw: Min Control Input Width (active low) Tclk: Min Logic 1 (high) + Min Logic 0 (low) time for CLK signal. May be stated separately or as Max Frequency (Fmax). Note: Tclk – (Tsu + Th) = Worst Case usable time to change data.

Missing Tsu or Th ….. Possible Results FF latches the data normally as if Tsu and Th were satisfied FF misses the intended data but clocks data at next opportunity FF misses the intended data completely, lost FF latches the correct data but with extended Td FF latches the correct data but exhibits many output transitions FF misses the intended data and exhibits many output transitions FF misses the data and causes other spurious affects Metastable Behaviour

Characterizing Metastable Likelyhood Fd can be estimated using a worst case assumption based on clock frequency To and t: Technology (family) specific, usually published in a separate metastability characterization report from the Mfg. Tw: Walkout time allowable within a given application (1/Fc – Tsu – Th) in many cases

Examples: To & t, Metastability Constants Worst Case Metastability Analysis Clearly this device is not well suited for the intended application ! Metastability MTBFs Need to Be >> 100 years

Improvement Using Better (faster) Device Using Metastable hardened Device Enormous difference in Metastability Performance of Device Technologies

Same Example Using Multistage Synchronization Synchronization also used to improve “System” Immunity to Metastability Same Example Using Multistage Synchronization Synchronization Causes System Response Time Penalty

Simple Data Transfer Example: 10Mhz CPU Memory Read Cycle Using Timing Parameters, Timing Analysis Simple Data Transfer Example: 10Mhz CPU Memory Read Cycle Timing Diagram notation uses binary signals (CLK, Controls) and bussed signals (Address and Data) CPU Generates System Timing relative to a master CLK. Sends out Address and Control Signals, Expects Data in T3 Basic Memory Read Cycle is 3 CLKs long but can be extended using the DTACK (Wait State) signal CPU Samples DTACK in T2, if non-active, T2 is repeated (Wait State); if active, T2 ends followed by T3 CPU Expects Data at midpoint of T3, Note Data Setup Time and Data Hold Time Requirements Timing Analysis Determines if Target Memory Device is Fast Enough or if it requires Wait States

Using the “Target” device as viewpoint Timing Analysis Using the “Target” device as viewpoint Read-Only-Memory is Target Device Target Device Timing Parameters Target has 3 basic input signals Address: Specifies 1 storage location in device to be read CE (active low): Disables entire device including selector system and output driver OE (active low): Disable output driver only

Timing Analysis… To Get the Data

Timing Analysis… To Get the Data Possible Improvements: Use Faster FPGA with lower Tpd Exercise 1 wait state using DTACK

Timing Analysis… To Finish the Cycle Can Memory disable output drive in time?

General State Machine Architecture Inputs Next State Comb Logic State Variables (FF) Array Output Decoder Logic Possible Outputs Outputs Present State Info CLK Mealy Architecture Requires Output Decoder Logic Block

Review: State Machine Design Typical “Bubble Diagram” Important to “Account” for ALL possible states

2 Classes of State Machines: Moore Architecture Mealy Architecture Mealy type may utilize fewer FFs, more compact Moore type offers possibility for state variables to be outputs (no glitch) Both types can be implemented with either D or JK type FFs. D used in PLDs

General State Machine Architecture Inputs Next State Comb Logic State Variables (FF) Array Output Decoder Logic Possible Outputs Outputs Present State Info CLK Mealy Architecture Requires Output Decoder Logic Block

Example 1 Design a state machine which is capable of detecting an input signal and adding a 2 clock delay on the trailing (falling) edge of the input. All paths (arrows) which terminate in a logic 1 for Qa, Qb or OUT generate a MIN term in their respective K-Map

Schematic Implementation IN Qa OUT Qb CLK Set & Reset inputs unused, terminated with pullup resistors to logic 1

Example 2 Design a state machine which arbitrates between 2 CPUs sharing a common memory system. Each CPU has a separate request and grant signal. In the event of simultaneous request, give preference to CPU A. Grant 2 Grant 1 Q2Q1 R2R1 R1 Q1 R2 Q2 Preference is given to CPU A with don’t care condition for R2 when R1 is active Moore Implementation Allow state variables to be used directly as outputs

2 Maps for Q2Q1 D-Input Logic R2R1 Q2Q1 Q1= R1* Q2 Grant 2 Grant 1 Map for Q1 R2R1 Q2Q1 Q2Q1 Q2= (R2* Q2* Q1) + (R2* R1* Q1) R2R1 R1 Q1 Map for Q2 R2 Q2 CLK

Machine Partitions

Equivalence Partition

State Reduction

Symmetric Logic Functions

Properties of Symmetric Logic Functions

Properties of Symmetric Logic Functions