Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras
*Currently a Visiting Professor at IIT Bombay
Digital Circuits and Systems
Spring 2015 Week 6 Module 33
Timing Sequential Circuits
Systems Timing Sequential Circuits Shankar Balachandran* Associate - - PowerPoint PPT Presentation
Spring 2015 Week 6 Module 33 Digital Circuits and Systems Timing Sequential Circuits Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras *Currently a Visiting Professor at IIT Bombay Sequential
Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras
*Currently a Visiting Professor at IIT Bombay
Timing Sequential Circuits
Analysis and Design of Sequential Logic Circuits 2
Analysis and Design of Sequential Logic Circuits 3
tio – delay from input of IFL to output of OFL tif – delay from circuit inputs of flip-flop inputs tfo – delay from flip-flop outputs to circuit outputs tff – delay from flip-flop outputs to flip-flop inputs tc-q– clock to Q propagation delay of flip-flops tsu – setup time of flip-flops th – hold time of flip-flops tc – clock delay; time required for clock to reach all flip-flops
Analysis and Design of Sequential Logic Circuits 4
X (at sequential circuit input)
Changes that occur at inputs can be delayed by as much as
Similarly, hold time of the circuit inputs relative to the system
max max min
if u su c s
max min max
h if c h
Tsu Th th tsu
CLK (at clock source)
tc
CK (at FF clock input)
tif tif
D (at FF input)
Analysis and Design of Sequential Logic Circuits 5
For an edge-triggered circuit: minimum clock period is, Maximum Clock Frequency:
C Q ff su max max max
clk clk
Comb. logic
Λ
Qi Di Qj Dj
CKi CKj tff Λ CLK
tsu Tck (=Tclk)
CKi Edge Triggering
tff
Dj Qi
tC-Q
Analysis and Design of Sequential Logic Circuits 6
The clock period (Tclk) has a lower bound of tff.max . If the clock period is equal to (tff.max + tC-Q.max) then the
Remedy :
Use faster flip-flops (decrease tC-Q ) Use faster gates (decrease tff ) Use a slower clock (increase clock period, Tclk)
max max max
Analysis and Design of Sequential Logic Circuits 7
The previous discussion assumes that clock signals
Because of different wire lengths over which the clock
Clock skew, tskew, is the difference in time between
Analysis and Design of Sequential Logic Circuits 8
Therefore, for an edge-triggered circuit with clock skew, Clock skew is a significant factor in determining the speed of high-
max max max max
clk skew C Q ff su
tskew
Comb. logic
Λ
Qi Di Qj Dj
CKi CKj tff Λ CLK
tsu Tck (=Tclk)
CKi
tskew
CKj
tC-Q
Qj
tff
Di
Analysis and Design of Sequential Logic Circuits 10
Analysis and Design of Sequential Logic Circuits 11
.
nand p c nand p c nand p ff nand p ff nand p if nand p if
min, , min , max, , max , min, , min , max, , max , min, , min , max, , max ,
,max ,max ,min ,max ,min ,max ,max ,max ,max ,max
su su if c h h if c clk C Q ff su clk
For a D flip-flop use: tsu = 2ns, th = 15ns, tC-Q = 20ns For a NAND gate use: tp,max = 10ns, tp,min = 3ns
Analysis and Design of Sequential Logic Circuits 12
Latches can be used to create sequential systems. However, since these are level-triggered clocking must be done carefully – must ensure that state changes only once per clock cycle.
Use narrow-width clock whose pulse width is less than the fastest possible path through the combinational logic.
To guarantee correct next state, make sure that the clock period is longer than the worst-case propagation delay through the combinational logic. Comb. logic
Qi Di Qj Dj
CKi CKj tff CLK
tw < tff.min+ tD-Q.min > (tD-Q.max + tff.max+ tsu.max)
CLK
Analysis and Design of Sequential Logic Circuits 14
Tclk
tskew
Comb. logic
Qi Di Qj Dj
CKi CKj tff CLK
tsu
CKi
tD-Q
Q
j
tff
Dj
tskew
CK
j
Di
max min max max max
clk skew w su D Q ff su
tsu tw
Intro to State Machines 15