Académique Documents
Professionnel Documents
Culture Documents
Inputs Outputs
Combinational
Logic
Current Next
Registers
State State State
clock
clock
clock
In data
stable
tc-q time
Inputs Outputs
Combinational
Logic
Current Next
Registers
State State
State
T (clock period)
clock
Static storage
● preserve state as long as the power is on
● have positive feedback (regeneration) with an internal connection
between the output and the input
● useful when updates are infrequent (clock gating)
Dynamic storage
● store state on parasitic capacitors
● only hold state for short periods of time (milliseconds)
● require periodic refresh
● usually simpler, so higher speed and lower power
Latches
● level sensitive circuit that passes inputs to Q when the clock is
high (or low) - transparent mode
● input sampled on the falling edge of the clock is held stable
when clock is low (or high) - hold mode
Flipflops (edge-triggered)
● edge sensitive circuits that sample the inputs on a clock
transition
- positive edge-triggered: 0 → 1
- negative edge-triggered: 1 → 0
● built using latches (e.g., master-slave flipflops)
cascaded inverters
Vi2 = Vo1
S R Q !Q
S 0 0 Q !Q memory
!Q
1 0 1 0 set
0 1 0 1 reset
Q
R 1 1 0 0 disallowed
D
!Q
D Latch
Q
D Q
clock
clock
hold mode
CSE477 L17 Static Sequential Logic.12 Irwin&Vijay, PSU, 2002
MUX Based Latches
Change the stored value by cutting the feedback loop
feedback feedback
1 0
Q Q
D 0 D 1
clk clk
clk
!clk
input sampled
D (transparent mode)
clk
clk
D Latch
D Q
!clk
clk feedback
(hold mode)
CSE477 L17 Static Sequential Logic.14 Irwin&Vijay, PSU, 2002
PT MUX Based Latch Implementation
clk !Q
D Q
input sampled
(transparent mode)
!clk
Reduced clock load, but
clk
threshold drop at output
of pass transistors so !clk
reduced noise margins
and performance
feedback
(hold mode)
CSE477 L17 Static Sequential Logic.15 Irwin&Vijay, PSU, 2002
Latch Race Problem
Combinational
Logic B
B B’
Registers clk
State
D FF
D Q
0
1 Q clock
1
QM
D 0
clk clk
clk
Slave D
Master
I2 T2 I3 I5 T4 I6 Q
QM
I1 T1 I4 T3
D
clk
clk
!clk
I2 T2 I3 I5 T4 I6 Q
QM
I1 T1 I4 T3
D
clk
!clk
zero
3
Q
2 .5
2 tsetup = 0.21 ns
QM
1 .5
Volts
1 D clk
0 .5
I2 out
0
-0 .5 works correctly
0 0 .2 0 .4 0 .6 0 .8 1
Time (ns)
3
Q
2 .5
I2 out tsetup = 0.20 ns
2
1 .5
Volts
1
D clk
0 .5
0 QM
- 0 .5 fails
0 0 .2 0 .4 0 .6 0 .8 1
Time (ns)
2 .5
-0 .5
0 0 .5 1 1 .5 2 2 .5
Time (ns)
clk !clk
I1 I3
QM
D T1 T2 Q
I2 I4
!clk clk
reverse conduction
clk clk
!clk !clk
1-1 overlap
0-0 overlap
P1 A P3 I3 I4 !Q
D I1 I2
B
P2 P4
!clk clk
P1 A P3 I3 I4 !Q
D I1 I2
B
P2 P4
clk2 clk1
dynamic
master transparent storage
slave hold
clk
B clk2
clk
clk1
clk2
1D Q 0
0 1 1
!clk clk
clk
!clk
CSE477 L17 Static Sequential Logic.30 Irwin&Vijay, PSU, 2002
Power PC Flipflop
clk !clk
1D Q 0 →1
0 →1 1 →0 1 →0
!clk clk
!clk
CSE477 L17 Static Sequential Logic.31 Irwin&Vijay, PSU, 2002
Ratioed CMOS Clocked SR Latch
off on
M2 M4
Q 1
0 !Q
clk M6 M8 clk
M1 M3
on off
M7 R1
0 S M5
off on
off → on on → off
M2 M4
Q 1 →0
1← 0 !Q
off->on off->on
0 → 1 clk M6 M8 clk 0 → 1
M1 M3
on → off off → on
M7 R1
0 S M5
off on
1.5
so W/L5and6 > 3
!Q (Volts)
0.5
0
2 2.5 3 3.5 4
W/L5and6
W/L2and4 = 1.5µ m/0.25 µ m
W/L1and3 = 0.5µ m/0.25 µ m
CSE477 L17 Static Sequential Logic.34 Irwin&Vijay, PSU, 2002
Transient Response
SET
2
Q & !Q (Volts)
!Q
Q
1 tc-!Q tc-Q
0
0.9 1 1.1 1.2 1.3 1.4 1.5
Time (ns)
clk clk
R S
clk
clk M2 M4
Q M6 S
M5 !Q
R
M1 M3
Reminders
● Project prototypes due today
● Project final reports due December 5th
● HW4 due November 5th
● HW5 out November 5th and due November 19th
● Final exam scheduled
- Monday, December 16th from 10:10 to noon in TBD