Topic 6 - Clocking & Met A Stability
Topic 6 - Clocking & Met A Stability
Inputs must be synchronized with the system clock before being applied to a synchronous system.
A simple synchronizer
PYKC 31-Jan-08
Topic 6 Slide 3
PYKC 31-Jan-08
Topic 6 Slide 4
Even worse
The way to do it
One synchronizer per input Carefully locate the synchronization points in a system. But still a problem -- the synchronizer output may become metastable when setup and hold time are not met.
PYKC 31-Jan-08
Topic 6 Slide 5
PYKC 31-Jan-08
Topic 6 Slide 6
PYKC 31-Jan-08
Topic 6 Slide 7
PYKC 31-Jan-08
Topic 6 Slide 8
MTBF ( t r ) =
exp ( t r / ) To f a
where and T0 are parameters for a particular flip-flop, f is the clock frequency, and a is the number of asynchronous transitions / sec
PYKC 31-Jan-08 E3.05 Digital System Design Topic 6 Slide 9 PYKC 31-Jan-08 E3.05 Digital System Design Topic 6 Slide 10
MTBF ( t r ) =
Changing T0
exp ( t r / ) To f a
MTBF = 1000 yrs. F = 25 MHz a = 100 KHz tr = ?
Grad = 1/
PYKC 31-Jan-08
Topic 6 Slide 11
PYKC 31-Jan-08
Topic 6 Slide 12
Multiple-cycle synchronizer
Wait for multiple clock ticks to get a longer metastabilty resolution time
Waiting longer usually doesnt hurt performance unless there is a critical round-trip handshake.
Clock-skew problem
PYKC 31-Jan-08
Topic 6 Slide 13
PYKC 31-Jan-08
Topic 6 Slide 14
Clock Skew
Clock signal may not reach all flip-flops simultaneously. Output changes of flip-flops receiving early clock may reach D inputs of flipflops with late clock too soon.
Necessary in really high-speed systems DSYNCIN is valid for almost an entire clock period.
Reasons for slowness: (a) wiring delays (b) capacitance (c) incorrect design
Topic 6 Slide 15 PYKC 31-Jan-08 E3.05 Digital System Design Topic 6 Slide 16
PYKC 31-Jan-08
Clock-skew calculation
tffpd(min) + tcomb(min) thold tskew(max) > 0 First two terms are minimum time after clock edge that a D input changes Hold time is earliest time that the input may change Clock skew subtracts from the available hold-time margin Compensating for clock skew:
Longer flip-flop propagation delay Explicit combinational delays Shorter (even negative) flip-flop hold times
PYKC 31-Jan-08
Topic 6 Slide 17
PYKC 31-Jan-08
Topic 6 Slide 18
Needs to synchronise the two clock domains using two basic building blocks:
Phase-locked loop (PLL) Delay-locked loop (DLL)
PYKC 31-Jan-08
Topic 6 Slide 19
PYKC 31-Jan-08
Topic 6 Slide 20
Phase Alignment in Source Synchronous Systems Timing information carried by reference clock Use DLL to ensure proper clock phase for sampling
PYKC 31-Jan-08
Topic 6 Slide 21
PYKC 31-Jan-08
Topic 6 Slide 22
PYKC 31-Jan-08
PYKC 31-Jan-08
4 fixed-phase outputs (0, 90 , 180 , 270 ) Selectable phase shift ( n / 256 of the period)
through configuration or through increment/decrement 1/256 of clock period or 50 picosecond granularity
Phase Offset
Error between output phase and reference phase
Bandwidth
rate at which output phase tracks reference
PYKC 31-Jan-08
Topic 6 Slide 27
PYKC 31-Jan-08
Topic 6 Slide 28
PYKC 31-Jan-08
Topic 6 Slide 29
PYKC 31-Jan-08
Topic 6 Slide 30
PYKC 31-Jan-08
Topic 6 Slide 31
PYKC 31-Jan-08
Topic 6 Slide 32
PYKC 31-Jan-08
Topic 6 Slide 33