290 likes | 392 Views
Timing in Sequential circuits – Stabilization time of a latch. 1. 2. Assume that: t hl,1 = t lh,1 = t hl,2 = t lh,2 = 1 time unit. Timing in Sequential circuits – Stabilization time of a latch. Timing in Sequential circuits – Stabilization time of a latch.
E N D
Timing in Sequential circuits – Stabilization time of a latch 1 2 Assume that: thl,1 = tlh,1 = thl,2 = tlh,2 = 1 time unit
Timing in Sequential circuits – Stabilization time of a latch
Timing in Sequential circuits – Stabilization time of a latch
Timing in Sequential circuits – Stabilization time of a latch
Timing in Sequential circuits – Stabilization time of a latch It takes time unit for the latch to stabilize
clock controlled latch 1-cycle time 0-cycle time Cycle time
The Instability problem input output Combinatorial circuit Memory 1 Memory is updatable CP thl of 1
Solution latch is sensitive to the change in clock Memory is updatable CP
Timing in Sequential circuits – Master-Slave Flip Flop 1 2 CP Updating the FF
Timing in Sequential circuits – Master-Slave Flip Flop 1 2 CP Stabilization of latch 1 and latch 2
Timing in Sequential circuits – Edge triggered D-Flip Flop Stabilization before change of clock 0 1 Maintain value 1 0 1 0 =0 1 =0
Timing in Sequential circuits – Edge triggered D-Flip Flop Stabilization after change of clock 0 1 Set value to 0 1 1 0 1 =1 1 =0
Timing in Sequential circuits – Edge triggered D-Flip Flop 0 1 Set value to 0 1 1 0 1 =1 Output remains the same Input changed 1 =1
Timing in Sequential circuits – Definitions thold – time after the change of clock that the input must not change tsetup – time before the change of clock that the input must not change
Timing in Sequential circuits – Definitions CP tpC-Q – The time it takes the output to reach its legal value from the relevant change of clock tpC-Q 90% FF output tcC-Q – The time that the output does not change after the relevant change of clock tcC-Q
Timing in Sequential circuits – Constraints on the timing of the circuit What should be the constraints on the timing characteristics of FF 1 and 2 To ensure that the circuit works properly? Flip Flop 1 Flip Flop 2
Timing in Sequential circuits – Constraints on the timing of the circuit What should be the constraints on the timing characteristics of FF 1 and 2 To ensure that the circuit works properly? Flip Flop 1 Flip Flop 2 tcC-Q,1 > thold,2
X1 X2 D - FF Timing in Sequential circuits – Analyzing a circuit 2 1 Updating the variables in the negative edge (decrease from 1 to 0) FF locks in positive edge (increase from 0 to 1). 1. What is the minimal cycle time (what are the durations of each phase)? 2. What is the maximal delay of the circuit output? 3. What are the conditions on the timing properties of the clock such that the circuit will work properly?
Timing in Sequential circuits – What is the minimal cycle time (what are the durations of each phase)? Solution I Update Variables Lock FF
Timing in Sequential circuits – What is the minimal cycle time (what are the durations of each phase)? Solution I tpC-Q tsetup tpd(1)
Timing in Sequential circuits – What is the minimal cycle time (what are the durations of each phase)? Solution II tpC-Q tpd(1) tsetup
X1 X2 D - FF Timing in Sequential circuits – What is the maximal delay of the circuit output? Solution: 2 1 tpd =
X1 X2 D - FF Timing in Sequential circuits – What is the maximal delay of the circuit output? Solution: 2 1 tpd = tpd(2) The relevant clock change. The FF is already updated here
X1 X2 D - FF Timing in Sequential circuits – What are the conditions on the timing properties of the clock such that the circuit will work properly? Solution:
X1 X2 D - FF Timing in Sequential circuits – What are the conditions on the timing properties of the clock such that the circuit will work properly? Solution: thold < tcd(1) + tcC-Q