Professional Documents
Culture Documents
Circuit
Design
Ref: Weste-Harris
1
Sequential and Combinational Circuits
2
Static and Dynamic Circuits
5
Static and Dynamic
Sequential Elements
Sequencing elements themselves can be either
static or dynamic.
6
Latches and Flip-flops
7
Latches and Flip-flops
10
Circuit Design of Latches and Flip-Flops
11
Latch Design (1)
Pass Transistor Latch
Pros
+ Tiny
D Q
+ Low clock load
Used in 1970’s
Cons D Q
– Output does not swing from rail-to-rail
(gnd to VDD)
– Output never rises above VDD – Vt
– Output is dynamic (if output floats long enough
when the latch is opaque, it can be disturbed by
leakage)
– D drives diffusion input of a pass transistor
(potential noise issues)
– Noise on the output can corrupt the state
11: Sequential Circuits 15
Latch Design (2)
Transmission gate
+ No Vt drop
- Requires inverted clock D Q
X
D Q
Flip-flops
Flip-Flops
clk
Pulsed Latches
Flop
Flop
Combinational Logic
1 2 1
Latch
Latch
Latch
Combinational Combinational
Logic Logic
Half-Cycle 1 Half-Cycle 1
Pulsed Latches
p tpw
p p
Latch
Latch
Combinational Logic
Pulsed latch systems eliminate one of the latches from each cycle and
apply a brief pulse to the remaining latch.
If the pulse is shorter than the delay through the combinational logic,
we can still expect that a token will only advance through one clock
cycle on each pulse.
11: Sequential Circuits 46
Timing Diagrams
Flop
D Q D
tpdq Latch D->Q Prop. Delay
tpcq
D Q D tpdq
tcdq
Q
Figure shows the response of a flip-flop. The data input must be stable for
some window around the rising edge of the flop if it is to be reliably sampled.
The input D must have settled by some setup time (tsetup) before the rising
edge of clk and should not change again until a hold time (thold) after the clock
edge.
The output begins to change after a clock-to-Q contamination delay (tccq) and
completely settles after a clock-to-Q propagation delay (tpcq).
11: Sequential Circuits 49
Timing Diagram (Latch)
Q1 D2
F1
F2
Combinational Logic
Tc
t pd Tc tsetup t pcq D2
sequencing overhead
The propagation delays and contamination delays of the path are given.
Suppose the registers are built from flip-flops with a setup time of 62 ps, hold
time of –10 ps, propagation delay of 90 ps, and contamination delay of 75 ps.
Calculate the minimum cycle time Tc at which the ALU self-bypass path will
operate correctly.
critical path
The logic critical path involves propagation delays through the adder, result
mux, middle bypass mux, late bypass mux, and two 2-mm wires.
= 590 + 60 + 80 + 70 + 2*100
= 1000 ps.
11: Sequential Circuits 59
Example 1
Calculate the minimum cycle time Tc at which the ALU self-bypass path will
operate correctly.
L1
L2
L3
Logic 1 Logic 2
1
The maximum 2
2
t
D1 tpdq1
t pd t pd 1 t pd 2 Tc
pdq
D2 tpdq2
Q2 tpd2
D3
must be at least D1 Q1 D2 Q2
L1
L2
Combinational Logic
Tc
D1 tpdq
Recompute the ALU self-bypass path cycle time if the flip-flop is replaced with
a pulsed latch. The pulsed latch has a pulse width of 150 ps, a setup time of 40
ps, a hold time of 5 ps, a clk-to-Q propagation delay of 82 ps and
contamination delay of 52 ps, and a D-to-Q propagation delay of 92 ps.
The logic propagation delay remains the same (adder, result mux, middle
bypass mux, late bypass mux, and two 2-mm wires).
tpd = tadder + tresult mux + tmiddle bypass mux + tlate bypass mux + 2*t2-mm
F1
CL
logic contamination
Delay
clk
D2
F2
tcd thold tccq clk
Q1 tccq tcd
D2 thold
In the ALU self-bypass example with flip-flops, the earliest input to the late
bypass multiplexer is the imm value coming from another flip-flop.
Will this path experience any hold-time failures?
tcd = 45 ps.
The eq. is easily satisfied. So, it will not experience hold-time failure.
The minimum 1
Q1
logic contamination
L1
CL
Delay
2
D2
tcd 1,tcd 2 thold tccq tnonoverlap
L2
tnonoverlap
1
tccq
2
Q1 tcd
D2 thold
p
The minimum
Q1
logic contamination
L1
CL
Delay
p
D2
tcd thold tccq t pw
L2
p
tpw
thold
Q1 tccq tcd
D2
2
1 2 1
Latch
Latch
Latch
Combinational
(a) Combinational Logic
Logic
Loops may borrow time internally but must complete within the cycle
c tsetup tnonoverlap
D1 Q1 D2 Q2
T
L1
L2
Combinational Logic 1
tborrow
2
1
2 tnonoverlap
Pulsed Latches Tc
tsetup
tborrow t pw tsetup Tc/2
Nominal Half-Cycle 1 Delay
tborrow
D2
F1
F2
Combinational Logic
Tc
sequencing overhead
clk
Q1 tpdq tsetup
D2
clk
Q1
F1
CL
clk
D2
F2
tskew
clk
thold
Q1 tccq
D2 tcd
2
t
D1 Q1 Combinational D2 Q2 Combinational D3 Q3
L1
L2
L3
t pd Tc Logic 1 Logic 2
pdq
sequencing overhead 1
When the latch goes opaque, the sample switch opens and the
hold switch closes.
11: Sequential Circuits 98
Metastability
The stable states are
A = B = 0 and A = B = VDD.