* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Lecture_2_f01_p2
Survey
Document related concepts
Integrated circuit wikipedia , lookup
Switched-mode power supply wikipedia , lookup
Field-programmable gate array wikipedia , lookup
Opto-isolator wikipedia , lookup
Atomic clock wikipedia , lookup
Immunity-aware programming wikipedia , lookup
Index of electronics articles wikipedia , lookup
Rectiverter wikipedia , lookup
Phase-locked loop wikipedia , lookup
Digital electronics wikipedia , lookup
Transistor–transistor logic wikipedia , lookup
Transcript
ECE 551 - Digital System Design & Synthesis Lecture 2 - Pragmatic Design Issues Part 2 Overview Miscellaneous problems that arise in design and their solutions Issues considered in this part o Asynchronous Circuits o Clock Design and Delays o Electrical Issues 9/6/2001 ECE 551 Fall 2001 1 Asynchronous Circuits Delay-dependent design Combinational hazards Level/pulse conversion Synchronization Memory timing 9/6/2001 ECE 551 Fall 2001 2 Delay-Dependent Design A DA A A A DA 9/6/2001 ECE 551 Fall 2001 3 Combinational Hazards Hazard 1 in a Multiplexer A B F 1 C B F 9/6/2001 ECE 551 Fall 2001 4 Combinational Hazards (continued) Classification of Combinational Hazards o Static o Dynamic o Essential Consequences of Hazards o Signals with hazards in or entering asynchronous environments Hazard Prevention o Redundant Logic o Delay Control 9/6/2001 ECE 551 Fall 2001 5 Level/Pulse Conversion DATA_IN DATA_OUT D Clock C Q Level on DATA_IN must be longer than a clock period and must not rise close to the positive clock edge. Ideally synchronous with the Clock. 9/6/2001 ECE 551 Fall 2001 6 Synchronization D Clock D Q Q Clock C Req C Rep Asynchronous Rep can cause sequential circuit malfunction since it reaches two or more flip-flops. Solution: Put synchronizer (PET DFF) in Rep path. 9/6/2001 ECE 551 Fall 2001 7 Metastability A specific phenomena that in the present of certain closely timed events on the inputs can cause bizarre latch and flip-flop behavior: o Hanging for a time at a threshold level o Produce a damped oscillation One remedy: Use two to three synchronizers in series 9/6/2001 ECE 551 Fall 2001 8 Memory Timing Many memories are asynchronous circuits, e. g., SRAMs are latch-based without a clock on the latch o Their inputs can respond to “glitches” such as hazards. o A majority of all memory inputs need to be “glitch-free.” Since memories involve capture of data in selectivelyaddressed cells, set-up and hold times apply to many of the inputs, notably the addresses. Memory outputs often involve 3-state buses; one must be sure that the bus is active whenever data is being read. When designing with memories, careful attention must be given to meeting fully all of the timing specifications. 9/6/2001 ECE 551 Fall 2001 9 Asynchronous Design Using classical techniques, because of the difficulty of eliminating the hazards, very difficult to insure correct operation under all timing possibilities Therefore, don’t do it! If you truly need it, investigate some of the more contemporary approaches which avoid some of the many difficulty. 9/6/2001 ECE 551 Fall 2001 10 Clocking Design Clock skew Clock gating Clock jitter Clock buffers Interconnect delay control 9/6/2001 ECE 551 Fall 2001 11 Clock Skew Clock skew is the arrival of the active clock edge(s) at different times in different parts of a chip or system. Clock skew can result from o logic delays, as in clock gating and buffering o interconnection delays. Clock skew can cause: o Premature capture of new “state” values o The shortening of the effective allowable delay along a path from flip-flop to flip-flop o Lengthening of the effective allowable delay along a path from flip-flop to flip-flop 9/6/2001 ECE 551 Fall 2001 12 Clock Gating Use of gate logic to interrupt the clock signal to a portion of the logic to prevent the state from changing Why use it? o Simplifies logic o Reduces power consumption Why not use it? o Can circuit failure due to clock skew o Complicates circuit testing 9/6/2001 ECE 551 Fall 2001 13 Clock Jitter Clock does not provide a signal having a fixed frequency. Clock period is: o slightly shorter, or o slightly longer on any given cycle. The clock jitter is the absolute value of the maximum difference between o the nominal period, and o the shortest and the longest clock periods Can be very serious if circuit has multiple clocks with independent jitter. 9/6/2001 ECE 551 Fall 2001 14 Combinational Logic Delay Upper Bound Components of the Bounds o o o o Nominal Clock Period CP FF Propagation Delay tFF FF Set-up Time tSU Clock skew (of destination FF clock with respect to source FF clock) (+ or –) tsc o Clock Jitter Magnitude tCJ Combinational Logic Delay Upper Bound along Particular FF to FF path: o DCL < CP + tsc – tCJ – tFF – tSU From this equation, we see that: o Clock jitter degrades performance o Clock skew may either degrade (if negative) or enhance (if positive) performance! 9/6/2001 ECE 551 Fall 2001 15 Combinational Logic Delay Lower Bound Related to incorrect function due to hold time violation Left as an exercise 9/6/2001 ECE 551 Fall 2001 16 Clock Buffers Reasons for buffering o Large driven load o Long clock interconnects Must be designed to minimize skew Overall, clock distribution in an aggressive design is a major separate task 9/6/2001 ECE 551 Fall 2001 17 Interconnect Delay Control Interconnect delay (exclusive of clocks) for “global” interconnects is a significant component of the FF to FF delay in submicron channel length circuits. Implication: Interconnect delay has a significant impact on performance in submicron channel length designs. o Ideally global routes are from FF to FF. o If combinational logic involved, all interconnect delay subtracted from combinational logic delay upper bound 9/6/2001 ECE 551 Fall 2001 18 Interconnect Delay Control (continued) Methods of handling interconnect delay: o o o o Chip floorplanning to reduce global routing Interconnect driver strength and inserted buffers Interconnect sizing Circuit retiming (if combinational logic in series with global interconnect) o Last resort: addition of FFs to very troublesome paths and redesign of parts of system affected. 9/6/2001 ECE 551 Fall 2001 19 Electrical Issues Loading Constant inputs Slew rate and ground bounce 9/6/2001 ECE 551 Fall 2001 20 Loading The loading of a gate or other component can affect: o Output levels o Local Power Dissipation o Delay Consider two logic families assuming both loads and drivers are in the families: o TTL o CMOS 9/6/2001 ECE 551 Fall 2001 21 Loading of TTL Gates TTL (Transistor-Transistor Logic) is a current sinking technology. For driven TTL gates, at LOW, a substantial current flows out of inputs into the driving output. The static current for the driving gate at LOW: o IC = VCC /(RC + RB/FO) where RC is the output resistance of the TTL driver transistor in saturation, RB is the resistance in the driven gates governing the input current, and FO is the fanout in terms of number of gates driven. 9/6/2001 ECE 551 Fall 2001 22 Loading of TTL Gates As FO increases, the current increases which increases: o the LOW output level o the power dissipation Also, the additional gates driven add to the capacitance driven which increases delay. The increase in the low level can cause noise problems. The increase in power dissipation can cause thermal problems and possible IC damage. 9/6/2001 ECE 551 Fall 2001 23 Loading of CMOS Gates The current into or out of a CMOS gate output flows only during transitions and is otherwise negligible. Increased fanout FO increases the capacitive load on the driving gate which increases: o the delay of a transition o the duration of time during which a sizable current flows into or out of the driving gate. If the output changes frequently, then the dynamic current could cause power dissipation to produce a local thermal problem and possible IC damage. 9/6/2001 ECE 551 Fall 2001 24 Constant Inputs If a constant input is to be applied to an IC from outside, it is generally a good idea to include a resistance between the ground or supply and the input for the following reasons: o prevents a large current at the input for some technologies at power-up that can cause damage or disable the IC. o allows the fixed signal to be changed during testing. 9/6/2001 ECE 551 Fall 2001 25 Slew Rate and Ground Bounce If large dynamic currents are drawn from the power supply, there can be significant changes in the GND or VCC voltage values on chip due to lead inductance. This phenomena is called ground bounce in the case of the ground voltage. The high current problem most often arises with output buffers driving large off-chip capacitances. 9/6/2001 ECE 551 Fall 2001 26 Slew Rate and Ground Bounce Remedies The voltage transient is related to: o L dI/dt where I is the power or ground current. Reduce the effective lead inductance L by using multiple supply and ground leads. o It is not uncommon for a significant percentage of all leads on an IC to be supply or ground leads. Reduce dI/dt by reducing the slew rate, the rate of change in the output voltage. o By reducing C dV/dt, the current and its derivative are reduced. 9/6/2001 ECE 551 Fall 2001 27 Summary Design Issues o Three-State and Other Hi-Z States o Sequential Circuit Basics o Asynchronous Circuits o Clock Design o Electrical Issues All Far 9/6/2001 are important from exhaustive ECE 551 Fall 2001 28 References Seidensticker, Robert B., The Well-Tempered Digital Design, Addison-Wesley Publishing Company, 1986. Wakerly, John F., Digital Design - Principles and Practices, 3rd Ed., Prentice-Hall, 2000. Johnson, Howard W., and Martin Graham, High Speed Digital Design – A Handbook of Black Magic, Prentice Hall PTR, 1993. 9/6/2001 ECE 551 Fall 2001 29