Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.

Similar presentations


Presentation on theme: "ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering."— Presentation transcript:

1 ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering

2 TIMING ANALYSIS

3 Overview  Circuits do not respond instantaneously to input changes  Predictable delay in transferring inputs to outputs  Propagation delay  Sequential circuits require a periodic clock  Goal: analyze clock circuit to determine maximum clock frequency  Requires analysis of paths from flip-flop outputs to flip- flop inputs  Even after inputs change, output signal of circuit maintains original output for short time

4 Sequential Circuits °Sequential circuits can contain both combinational logic and edge-triggered flip flops °A clock signal determines when data is stored in flip flops °Goal: How fast can the circuit operate? Minimum clock period: T min Maximum clock frequency: f max °Maximum clock frequency is the inverse of the minimum clock period 1/T min = f max Clock Period Clock

5 Combinational Logic Timing: Inverter °Combinational logic is made from electronic circuits An input change takes time to propagate to the output °The output remains unchanged for a time period equal to the contamination delay, t cd °The new output value is guaranteed to valid after a time period equal to the propagation delay, t pd A Y A Y t pd t cd

6 Combinational Logic Timing: XNOR Gate °The output is guaranteed to be stable with old value until the contamination delay Unknown values shown in waveforms as Xs °The output is guaranteed to be stable with the new value after the propagation delay

7 Combinational Logic Timing: complex circuits °Propagation delays are additive Locate the longest combination of t pd °Contamination delays may not be additive Locate the shortest path of t cd °Find propagation and contamination delay of new, combined circuit A B C A B C Circuit X T pd = 5ns T cd = 1ns T pd = 2ns T cd = 1ns T pd = 3ns T cd = 1ns

8 Clocked Device: Contamination and Propagation Delay °Timing parameters for clocked devices are specified in relation to the clock input (rising edge) °Output unchanged for a time period equal to the contamination delay, t cd after the rising clock edge °New output guaranteed valid after time equal to the propagation delay, t Clk-Q Follows rising clock edge Clk Q D t cd t Clk-Q

9 Clocked Devices: Setup and Hold Times t s t h Clk Q D °Timing parameters for clocked devices are specified in relation to the clock input (rising edge) °D input must be valid at least t s (setup time) before the rising clock edge °D input must be held steady t h (hold time) after rising clock edge °Setup and hold are input restrictions Failure to meet restrictions causes circuit to operate incorrectly

10 Edge-Triggered Flip Flop Timing D CLK t s = setup time t h = hold time °The logic driving the flip flop must ensure that setup and hold requirements are met °Timing values (t cd t pd t Clk-Q t s t h )

11 Analyzing Sequential Circuits °What is the minimum time between rising clock edges? T min = T CLK-Q (FFA) + T pd (G) + T s (FFB) Z Comb. Logic T Clk-Q = 5 ns T s = 2 ns D Q D Q YX D CLK T Clk-Q = 5ns T pd = 5ns FFA FFB G

12 Analyzing Sequential Circuits °What is the minimum clock period (T min ) of this circuit? Hint: evaluate all FF to FF paths °Maximum clock frequency is 1/T min Z Comb. Logic H T Clk-Q = 4 ns T s = 2 ns D Q D Q YX CLK T Clk-Q = 5ns T pd = 5ns FFA FFB Comb. Logic F T pd = 4ns

13 Analyzing Sequential Circuits °Path FFA to FFB T Clk-Q (FFA) + T pd (H) + T s (FFB) = 5ns + 5ns + 2ns = 12ns °Path FFB to FFB T CLK-Q (FFB) + T pd (F) + T pd (H) + T s (FFB) = 4ns + 4ns + 5ns + 2ns Z Comb. Logic H T Clk-Q = 4 ns T s = 2 ns D Q D Q YX CLK T Clk-Q = 5ns T pd = 5ns FFA FFB Comb. Logic F T pd = 4ns F max = _______

14 Analyzing Sequential Circuits: Hold Time Violation °One more issue: make sure Y remains stable for hold time (T h ) after rising clock edge °Remember: contamination delay ensures signal doesn’t change °How long before first change arrives at Y? T cd (FFA) + T cd (G) >= T h 1ns + 2ns > 2ns Z Comb. Logic T h = 2 ns D Q D Q YX D CLK T cd = 1ns T cd = 2ns FFA FFB G

15 Analyzing Sequential Circuits: Hold Time Violations °Path FFA to FFB T CD (FFA) + T CD (H) > T h (FFB) = 1 ns + 2ns > 2ns °Path FFB to FFB T CD (FFB) + T CD (F) + T Cd (H) > T h (FFB) = 1ns + 1ns + 2ns > 2ns Z Comb. Logic H T ClD = 1 ns T h = 2 ns D Q D Q YX CLK T ClD = 1ns T cd = 2ns FFA FFB Comb. Logic F T cd = 1ns All paths must satisfy requirements

16 Resolve Setup/Hold Violations  Find longest path and reduce the delay  Objective: reduce set up time violation  Reduce number of gates on the longest path  Increase the gate sizes on the longest path  Move gates around  …  Find shortest path and increase the delay  Objective: reduce hold time violation  Reduce the gate size on the shortest path  …

17 Summary  Maximum clock frequency is a fundamental parameter in sequential computer systems  Possible to determined clock frequency from propagation delays and setup time  The longest path determines the clock frequenct  All flip-flop to flip-flop paths must be checked  Hold time are satisfied by examining contamination delays  The shortest contamination delay path determines if hold times are met


Download ppt "ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering."

Similar presentations


Ads by Google