Download 0 1 1 0 1

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Switched-mode power supply wikipedia , lookup

Power inverter wikipedia , lookup

Solar micro-inverter wikipedia , lookup

Immunity-aware programming wikipedia , lookup

Opto-isolator wikipedia , lookup

Control system wikipedia , lookup

Negative feedback wikipedia , lookup

Atomic clock wikipedia , lookup

Rectiverter wikipedia , lookup

Flip-flop (electronics) wikipedia , lookup

Time-to-digital converter wikipedia , lookup

Transcript
Review: How to Choose a Logic Style

Must consider ease of design, robustness (noise immunity),
area, speed, power, system clocking requirements, fan-out,
functionality, ease of testing
4-input NAND
Style
# Trans
Comp Static
8
CPL*
12 + 2
domino
6+2
DCVSL*
10
Ease
1
2
4
3
Ratioed? Delay Power
no
3
1
no
4
3
no
2
2 + clk
yes
1
4
* Dual Rail

Current trend is towards an increased use of
complementary static CMOS: design support through DA
tools, robust, more amenable to voltage scaling.
Sequential Logic
Inputs
Outputs
Combinational
Logic
Current
State
Next
State
clock
Timing Metrics
clock
clock
tsu
In
time
thold
data
stable
time
tc-q
Out
output
stable
output
stable
time
System Timing Constraints
Inputs
Outputs
Combinational
Logic
Current
State
Next
State
T (clock period)
clock
tcdreg + tcdlogic  thold
T  tc-q + tplogic + tsu
Static vs Dynamic Storage

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 vs Flipflops

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)
Review: The Regenerative Property
Vi1
Vo1
Vi2
Vo2
cascaded inverters
A
C
B
Vi1 = Vo2
If the gain in the transient
region is larger than 1,
only A and B are stable
operation points. C is a
metastable operation
point.
Bistable Circuits


The cross-coupling of two
inverters results in a bistable
circuit (a circuit with two
stable states)
Vi2
Have to be able to change the stored value by making A
(or B) temporarily unstable by increasing the loop gain to
a value larger than 1



Vi1
done by applying a trigger pulse at Vi1 or Vi2
the width of the trigger pulse need be only a little larger than the
total propagation delay around the loop circuit (twice the delay of
an inverter)
Two approaches used


cutting the feedback loop (mux based latch)
overpowering the feedback loop (as used in SRAMs)
SR Latch
S
R
!Q
Q
S
R
Q
!Q
0
0
Q
!Q
memory
1
0
1
0
set
0
1
0
1
reset
1
1
0
0
disallowed
Clocked D Latch
D
!Q
Q
D
Q
clock
transparent mode
clock
hold mode
clock
MUX Based Latches

Change the stored value by cutting the feedback loop
feedback
feedback
1
0
Q
D
0
clk
Q
D
1
clk
Negative Latch
Positive Latch
Q = clk & Q | !clk & D
Q = !clk & Q | clk & D
transparent when the
clock is low
transparent when the
clock is high
TG MUX Based Latch Implementation
clk
Q
!clk
input sampled
(transparent mode)
D
clk
clk
D
Q
clk
!clk
feedback
(hold mode)
PT MUX Based Latch Implementation
clk
!Q
Q
D
input sampled
(transparent mode)
!clk
Reduced clock load, but
threshold drop at output
of pass transistors so
reduced noise margins
and performance

clk
!clk
feedback
(hold mode)
Latch Race Problem
B
B’
B
clk
Which value of B is stored?
clk
Two-sided clock constraint
T  tc-q + tplogic + tsu
Thigh  tc-q + tcdlogic
Master Slave Based ET Flipflop
D
Q
0
1
D
QM
0
1
clk
clk
clk = 0 transparent
hold
clk
Slave
D
hold
QM
transparent
Q
Master
clk = 01
clock
Q
MS ET Implementation
Slave
Master
I2
T2
I3
I5
T4
I4
T3
I6
QM
D
I1
T1
clk
master transparent
slave hold
clk
!clk
master hold
slave transparent
Q
MS ET Timing Properties

Assume propagation delays are tpd_inv and tpd_tx, that
the contamination delay is 0, and that the inverter
delay to derive !clk is 0

Set-up time - time before rising edge of clk that D
must be valid
3 * tpd_inv + tpd_tx

Propagation delay - time for QM to reach Q
tpd_inv + tpd_tx

Hold time - time D must be stable after rising edge of
clk
zero
Set-up Time Simulation
3
Q
2.5
2
tsetup = 0.21 ns
QM
Volts
1.5
1
D
clk
0.5
I2 out
0
works correctly
-0.5
0
0.2
0.4
0.6
Time (ns)
0.8
1
Set-up Time Simulation
3
Q
2.5
I2 out
Volts
2
tsetup = 0.20 ns
1.5
1
D
clk
0.5
QM
0
fails
-0.5
0
0.2
0.4
Time (ns)
0.6
0.8
1
Propagation Delay Simulation
3
2.5
2
tc-q(LH) = 160 psec
Volts
1.5
1
tc-q(LH)
tc-q(HL) = 180 psec
tc-q(HL)
0.5
0
-0.5
0
0.5
1
1.5
Time (ns)
2
2.5
Reduced Load MS ET FF

Clock load per register is important since it directly
impacts the power dissipation of the clock network.

Can reduce the clock load (at the cost of robustness) by
making the circuit ratioed
clk
!clk
I1
D
I3
QM
T
1
T
2
I2
!clk
Q
I4
clk
reverse conduction


to switch the state of the master, T1 must be sized to overpower I2
to avoid reverse conduction, I4 must be weaker than I1
Non-Ideal Clocks
clk
clk
!clk
!clk
Ideal clocks
Non-ideal clocks
clock skew
1-1 overlap
0-0 overlap
Example of Clock Skew Problems
X
clk
D
P1
A
I1
!clk
P3
I2
B
Q
I3
I4
P2
P4
!clk
clk
!Q
Race condition – direct path from D to Q during the short
time when both clk and !clk are high (1-1 overlap)
Undefined state – both B and D are driving A when clk and
!clk are both high
Dynamic storage – when clk and !clk are both low (0-0
overlap)
Pseudostatic Two-Phase ET FF
X
clk1
D
P1
A
I1
clk2
P3
I2
B
master transparent
slave hold
I3
I4
P2
P4
clk2
clk1
!Q
dynamic
storage
clk1
tnon_overlap
clk2
Q
master hold
slave transparent
Two Phase Clock Generator
A
clk1
B
clk2
clk
clk
A
B
clk1
clk2
Power PC Flipflop
!clk
clk
1D
0 1
!clk
1 0
1 0
Q 0 1
clk
master transparent
slave hold
clk
!clk
master hold
slave transparent
Ratioed CMOS Clocked SR Latch
off  on
M2
1 0
0  1 clk
M4
Q
1 0
!Q
off->on
off->on
M8
M6
M1
on  off
0 S
on  off
M5
off
clk 0  1
M3
off  on
M7
on
R1
Sizing Issues
2
1.5
!Q (Volts)
so W/L5and6 > 3
1
0.5
0
2
2.5
3
W/L5and6
3.5
4
W/L2and4 = 1.5m/0.25 m
W/L1and3 = 0.5m/0.25 m
Transient Response
3
Q & !Q (Volts)
SET
2
!Q
tc-!Q
1
Q
tc-Q
0
0.9
1
1.1
1.2
Time (ns)
1.3
1.4
1.5
6 Transistor CMOS SR Latch
clk
clk
R
S
clk
clk
R
M5
M2
M4
!Q
M1
M3
Q
M6
S