



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















Figure by MIT OCW.
2/18/
L06 – Clocks
Inputs
Outputs
Combinational Logic
Want to reuse
combinational logic from cycle to cycle
2/18/
L06 – Clocks
Most large scale ASICs, and systems built with theseASICs, have several synchronous clock domains connectedby asynchronous communication channels
Chip A
Chip B
Chip C
Clock
domain 1
Clock
domain 4
Clock
domain 2
Clock domain 3
Clock
domain 5
Clock
domain 6
Asynch.
channel
We’ll focus on a single synchronous clock domain today
2/18/
L06 – Clocks
Transparent Latch, Level Sensitive
data passes through when clock high, latched when clock low
Clock
D
Q
Clock
D Q
Transparent
Latched
D-Type Register or Flip-Flop, Edge-Triggered
data captured on rising edge of clock, held for rest of cycle
D
Q
Clock
D
Clock
Q
(Can also have latch transparent on clock low, or negative-edge triggered flip-flop)
2/18/
L06 – Clocks
D
CLK CLK
CLK CLK
Q
Clocked CMOS
(C
2
MOS)
inverter
Output buffer shields storage
node from downstream logic
D
CLK CLK
Q
Weak feedback inverter so input can overpower it
CLK
D
Q
Pulldown
stack
overpowers
cross-coupled
Generally the best, fast
and energy efficient
Has lowest clock load
Can be small, lower clock load, but
sizing problematic
Q
feedback
inverters
2/18/
L06 – Clocks
Clock
CQmax
CQmin
DQmax
DQmin
setup
hold
CQmin
CQmax
propagation in
→
out when clock opens latch
DQmin
DQmax
propagation in
→
out while transparent
usually the most important timing parameter for a latch
setup
hold
define window around closing clock edge during which datamust be steady to be sampled correctly
2/18/
L06 – Clocks
D
CLK CLK
CLK CLK
Q
If data arrives too close to clock edge, it won’t set upthe feedback loop before clock closes the inputtransmission gate.
2/18/
L06 – Clocks
CLK CLK
CLK CLK
Q
Added clock buffers to demonstrate
designs naturally have positive hold time
positive hold time on this latch – other latch
Hold time represents the race for clock to close the inputgate before next cycle’s data disturbs the stored value. (Here we’re rooting for the clock signal)
2/18/
L06 – Clocks
D
Q
Master
Transparent
Master Latched
Slave
Latched
Slave
Transparent
Master
Transparent
Slave
Latched
Master
Slave
CLK
2/18/
L06 – Clocks
CLK
D
CLK CLK
CLK CLK
CLK CLK
CLK CLK
Q
CLK
Q
Can have true or
complementaryoutput or both
Transmission-gate master-slave latches most popular in ASICs
robust, convenient timing parameters, energy-efficient
Many other ways to build a flip-flop other than transmission gatemaster-slave latches
usually trickier timing parameters
only found in high performance custom devices
2/18/
L06 – Clocks
Pmin
Pmax
CLK
Combinational
Logic
Single clock with edge-triggered registers most common
design style in ASICs
Slow path timing constraint
T
cycle
T
CQmax
Pmax
setup
can always work around slow path by using slower clock
Fast path timing constraint
T
CQmin
Pmin
T
hold
bad fast path cannot be fixed without redesign!
might have to add delay into paths to satisfy hold time
2/18/
L06 – Clocks
Central
Clock Driver
Clock
Distribution
Network
LocalClock
Buffers Variations in trace
length, metal width and
height, coupling caps
Variations in local clock load, local power supply,
local gate length and
threshold, local
clock arrival time
is “clock skew”
Difference in
temperature
2/18/
L06 – Clocks
Recursive pattern to distribute signals uniformly withequal delay over area
Uses much less power than grid, but has more skew
In practice, an approximate H-tree is used at the toplevel (has to route around functional blocks), with localclock buffers driving regions
2/18/
L06 – Clocks
Where does the clock signal come from?
Simple approach: ring oscillator
Odd number of inverter stages connected in a loop
Problem:
What frequency does the ring run at?
Depends on voltage, temperature, fabrication run, …
Where are the clock edges relative to an external observer?
Free running, no synchronization with external channel
2/18/
L06 – Clocks