Professional Documents
Culture Documents
Chip Level Timing: ECE124 Digital Circuits and Systems
Chip Level Timing: ECE124 Digital Circuits and Systems
Chip Level Timing: ECE124 Digital Circuits and Systems
Have discussed some issues related to timing analysis. Talked briefly about longest combinational path for a combinational circuit. Talked briefly about timing with flip-flops; i.e.,
Data input must be stable before active clock edge (setup time). Data input must be stable after active clock edge (hold time). Data output doesnt change immediately after the active clock edge (clock-tooutput time).
When we build an entire circuit (one with both flip-flops and combinational logic), there are other important timing concepts to understand.
Page 1
Tco
Tsu
clk Tclk1
Tclk2
Page 2
Page 3
Page 4
clk Tclk1
Tclk2
The equation for Tcycle tells us a minimum clock period (or maximum frequency) at which our circuit can operate without violating the setup time at the second FF input.
Page 5
Tco
Tsu
Page 6
Clock skew
If we look at our equation for maximum frequency:
The term (Tclk1 Tclk2) that measures the difference in time between the arrival of the active clock edge at the two flip-flops. This difference is called clock skew and it can be positive or negative. In general, clock skew is a big hassle, and we would like to avoid it if possible.
Page 7
clk Tclk1
Tclk2
Rising edge
ECE124 Digital Circuits and Systems
Falling edge
Page 8
Since the second FF is triggered on the falling edge, either Tdata must be short enough, or the cycle time for the clock needs to be lengthened (lower frequency) to allow the data to get to the second FF.
Page 9
Duty cycles
Sometimes the clock signal is not symmetric; It has a non-uniform duty cycle. If we use both rising and falling edge triggering, this can also affect the clock frequency.
2/3 high (66% duty cycle) CLK 1/3 low
Page 10
Page 11
clk Tclk
pins at IC boundary
logic inside IC
flip-flop inside IC
Page 12
cf cc df dc
- time when active clock edge arrives at FF CLK INPUT. - time when active clock edge arrives at CLK PIN. - time when data input at FF D INPUT makes a transition. - time when data input at DATA PIN makes a transition.
- the setup time of the FF D input w.r.t. the FF CLK input. - the hold time of the FF D input w.r.t. the FF CLK input.
- the setup time of the DATA PIN input w.r.t. the CLK PIN. - the hold time of the DATA PIN input w.r.t. the CLK PIN.
Page 13
dc < cc (Tsu-Tclk+Tdata).
dc > cc + (Th+Tclk-Tdata).
Page 14
So, we have the relationship: dc not in [cc-Tsetup,cc+Thold] There are setup and hold times at the IC inputs. When we use an IC, we must pay attention to these times to make sure that the IC will work correctly.
Page 15
clk Tclk
Tseup
Thold Tclk
pins at IC boundary
logic inside IC
flip-flop inside IC
Tsu
Th
Page 16
data
logic inside IC
Page 17
clk
Tclk Tco Tdata
data
Page 18