SLIDE 1 Slides for Lecture 20
ENEL 353: Digital Circuits — Fall 2013 Term Steve Norman, PhD, PEng
Electrical & Computer Engineering Schulich School of Engineering University of Calgary
25 October, 2013
SLIDE 2
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 2/16
Previous Lecture
4:1 multiplexer implementations. Using multiplexers to implement combinational logic functions. Decoders and applications of decoders.
SLIDE 3
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 3/16
Today’s Lecture
Completion of decoder-with-enable examples. (Related reading in Harris & Harris: None.) Introduction to timing of combinational logic; propagation and contamination delays. (Related reading in Harris & Harris: Section 2.9. Careful reading of this section is highly recommended!)
SLIDE 4
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 4/16
Using small decoders with enable inputs to make bigger decoders
A 2:4 decoder with enable input EN . . . Y0 Y1 Y3 Y2 A1 A0 2:4 decoder
11 10 01 00
EN Let’s build a 3:8 decoder using an inverter and two 2:4 decoder-with-enable circuits. Let’s build a 4:16 decoder- with-enable using some 2:4 decoder-with-enable circuits.
SLIDE 5 ENEL 353 F13 Section 02 Slides for Lecture 20
slide 5/16
Introduction to timing of combinational logic
The definition of combinational logic is that the outputs of a combinational element depend only the current values of its inputs. In reality, combinational elements have very, very short “reaction times”. Changes in inputs trigger changes to
- utputs that are almost but not quite instant.
Delays in combinational logic can set important limits on how fast digital systems can operate. We’re about to study some simple methods for estimating
- verall delays when complex combinational elements are built
from simpler combinational elements.
SLIDE 6
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 6/16
How short is a picosecond?
1 ps = 1 × 10−12 s. Every second contains 1012 = 1 trillion picoseconds. For simple logic gates in today’s integrated circuits, propagation delays—reaction times to changes in input values—are typically tens of picoseconds. An Olympic sprinter is considered to have false-started if she or he has reacted to the starting gun in less than 0.100 seconds. Let’s compare logic gates and humans using the same units for time . . . Typical AND gate reaction time: 60 ps. Very fast human reaction time: 100,000,000,000 ps.
SLIDE 7 ENEL 353 F13 Section 02 Slides for Lecture 20
slide 7/16
Sketching logic levels as functions of time
When a logic signal changes value, voltage as a function of time will follow a curve dictated by some complex physics: voltage VDD time In making sketches to illustrate digital circuit timing, the exact shapes of voltage/time curves are not important, and this style
1 logic level 0 time
SLIDE 8 ENEL 353 F13 Section 02 Slides for Lecture 20
slide 8/16
Delay in a simple gate
A Y Time delay A Y
By convention, delay is measured
◮ from the time that the
input is halfway between LOW and HIGH;
◮ to the time that the
between LOW and HIGH.
Image is Figure 2.66 from Harris D. M. and Harris S. L., Digital Design and Computer Architecture, 2nd ed., c 2013, Elsevier, Inc.
SLIDE 9 ENEL 353 F13 Section 02 Slides for Lecture 20
slide 9/16
A combinational element will exhibit a range of delays
There is no single “reaction time” for a given combinational
- element. Here are some of the many reasons for this:
◮ HIGH-to-LOW output transitions may be faster or slower
than LOW-to-HIGH transitions, depending on the design
◮ Circuits tend to get slower as they get warmer. ◮ Supposedly identical gates may perform differently due to
due to variations in manufacturing.
◮ In elements with multiple output bits, some output bits
may switch faster than others.
SLIDE 10 ENEL 353 F13 Section 02 Slides for Lecture 20
slide 10/16
Propagation and contamination delays
Because any combinational element exhibits a range of delays, delay characteristics of an element are often described by two numbers:
◮ tpd, the propagation delay. This is the maximum
possible delay under the expected operating conditions for the element.
◮ tcd, the contamination delay. This is the minimum
possible delay under the expected operating conditions for the element.
SLIDE 11
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 11/16
tpd and tcd illustrated in a timing diagram
A Y A Y Time tpd tcd
This is a relatively simple timing diagram, but there is still a lot going on here! Let’s make some notes about how to read this diagram.
Image is Figure 2.67 from Harris D. M. and Harris S. L., Digital Design and Computer Architecture, 2nd ed., c 2013, Elsevier, Inc.
SLIDE 12 ENEL 353 F13 Section 02 Slides for Lecture 20
slide 12/16
Example propagation and contamination delays
A detailed simulation of a 2-input NAND gate design produces the data shown in the sketch below . . . A B Y
1 1 1
100ps 220ps 350ps 130ps 150ps 200ps 280ps B Y 380ps A
What does the data tell us about tpd and tcd for this NAND gate design?
SLIDE 13
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 13/16
What are the causes of delays?
One major cause is the fact that a node in a logic circuit acts as a capacitor. That puts a limit on the rate of change of voltage at a node. I + − C V I = C dV dt , so dV dt = I C . Another important cause is wire delay—it takes a small amount of time for a voltage change to get from one end of a wire to the other, even for the tiny wires within integrated circuits. We won’t study the physical causes of delay in ENEL 353. It’s an important topic in ENCM 467 (Digital Electronics).
SLIDE 14
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 14/16
Overall tpd and tcd calculations
Suppose a combinational system is built by wiring together some combinational elements. C L C L C L C L If we have tpd and tcd data for each of the elements, how can we find overall values of tpd and tcd for the system as a whole? We’ll see that solving this problem involves concepts called the critical path and the short path.
SLIDE 15
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 15/16
A simple example of tpd and tcd calculations
Y A B C D gate tpd tcd AND 50 35 OR 60 45 (Times given in ps.) What is the critical path for this circuit? What is the short path? What is the overall tpd? What is the overall tcd?
SLIDE 16
ENEL 353 F13 Section 02 Slides for Lecture 20
slide 16/16
Upcoming topics
Completion of material on critical paths and short paths, and more examples. Glitches. Related reading in Harris & Harris: Section 2.9.