Beruflich Dokumente
Kultur Dokumente
Clocked Systems
inputs outputs
Combinational
Logic
Q D
Flip-
Flop
CLK
Single Phase System, edge triggered devices
inputs outputs
D Q logic D Q logic D Q
CLK
Pipelined system, single phase clock, edge-triggered
inputs outputs
D Q logic D Q logic D Q
G G G
∅1 ∅2 ∅1
Two phase clocks, level-sensitive devices (latches)
∅1
∅2
Non-overlapping clock phases
EE 4253/6253 Lecture Notes November 6, 1998 page 134
S
Q
S NOR-based Q
R SR latch Q
Q
R
VDD VDD
Q Q
S R
EE 4253/6253 Lecture Notes November 6, 1998 page 135
S
Q
S NAND-based Q
R SR latch Q
Q
R
VDD VDD
Q Q
S R
EE 4253/6253 Lecture Notes November 6, 1998 page 136
Clocked SR latch
S
Q
CLK
Q
R
VDD VDD
CLK
Q Q
R S
CLK CLK
Note that the transistor implementation is not a direct gate level implementation
of the design. Used complex gate design:
Q = S ⋅ CLK + Q Q = R ⋅ CLK + Q
Clocked D-latch
Q
CLK
D Q
D D Q Q CLK
CLK
CLK G Q Q
CLK
CLK CLK
Transistor-level implementation:
Q
D Q
CLK
CLK
VDD
CLK
CLK CLK
CLK CLK
D Q
Transistor-level implementation:
VDD VDD
VDD
CLK CLK
Q
D Q
CLK CLK
EE 4253/6253 Lecture Notes November 6, 1998 page 139
70λ × 250λ
DATA Q 1.2µm: 42µm × 150µm
2.0µm: 56µm × 200µm
CLK QBAR
R Functional Table
CLK DATA RST Q QBAR
0 * 1 DATA DATA
Input Capacitance (pF)
* * 0 0 1
Signal 1.2µm 1 * 1 QN-1 QBARN-1
CLOCK 0.12 0 0 * 0 1
DATA 0.12
RESET 0.16
Functional Diagram
C
C
DATA
Q
C Q
RESET
CLOCK C
From the CMOSN library distributed by MOSIS; original library done by the
National Security Agency (NSA).
EE 4253/6253 Lecture Notes November 6, 1998 page 140
D-Flip Flop
D D Q Q D D Q Q
CLK CLK
master slave
D D Q D Q Q
CLK G G
rising-edge triggered
master slave
D D Q D Q Q
CLK G G
falling-edge triggered
EE 4253/6253 Lecture Notes November 6, 1998 page 141
SET Size
DATA Q
90λ × 250λ
1.2µm: 54µm × 150µm
2.0µm: 72µm × 200µm
QBAR
Functional Table
RESET CLK SET RST Q QBAR
1 1 QN-1 QBARN-1
1 1 DATA DATA
Input Capacitance (pF)
Signal 1.2µm * * 0 0 1
CLOCK 0.18 * 0 1 1 0
DATA 0.13
SET 0.27
RESET 0.31
Functional Diagram
RESET C
C
Q
DATA
V DD
C C
C
V DD
C Q
C
CLOCK
SET C
RESET
C
SET
D Q
CLK
When CLK is high, D input must be able to overdrive the feedback inverter
output. Use low-gain devices in feedback inverter.
Another example:
Q Q
CLK
This implementation requires 10 transistors but it might actually take up less area
than the traditional clocked D-latch design because it avoids pass transistors.
EE 4253/6253 Lecture Notes November 6, 1998 page 143
CLK
D Q
CLK
In this case, the gate capacitance of the inverter becomes the state holding
element.
"Dynamic" because the charge on the gate capacitance will eventually leak off.
How long for leakage? For example, assuming leakage current of 1nA and
storage capacitance of 20fF, the total time for 5V (i.e., a 5V logic level) to "leak"
off is
∆V 20 × 10 -15 × 5
C × ∆i = = 100µs
1 × 10 - 9
CLK CLK
D Q
CLK CLK
Really need CLK and CLK to be non-overlapping. If CLK and CLK overlapped,
then a race condition could occur because there would be direct path from D to
Q, particularly if the overlap period was large.
EE 4253/6253 Lecture Notes November 6, 1998 page 144
The propagation delay, tpdCI, of the inverter which does the clock inversion = the
overtime (toverlap) in which a race condition could occur.
tpdCI
CLK
CLK
CLK CLK
master slave
D Q
tpd
CLK CLK
Vstorage
If tpd < toverlap, then when CLK = 0 → 1 then CLK = 1 to 0 after toverlap and the
Vstorage value will get set equal to D!!!
∅ ∅
D Q
∅ ∅
∅-section ∅-section
Basic operation:
1) ∅ = 1, (∅ = 0)
∅-section in evaluation mode, ∅-section in hold mode
2) ∅ = 0, (∅ = 1)
roles now reversed, ∅-section in hold mode, ∅-section in evaluation mode
EE 4253/6253 Lecture Notes November 6, 1998 page 146
During overlap, want to make sure that there is no possibility of a race condition
in which D feeds directly thru to Q
VDD VDD
D Q
1 1
(1 - 1) overlap
VDD VDD
0 0
D Q
(0 - 0) overlap
REG
a
∅ ⋅
REG
log Out
∅
REG
∅
Nonpipelined version
REG
∅ ⋅
REG
REG
REG
log Out
∅ ∅ ∅
REG
∅
Pipelined version
Clock period Tmin = tclk-out (register) + tpd logic block + tsetup register
∅ ∅ ∅
In Out
F G
compute F compute G
∅ ∅ ∅
In Out
F G
∅ ∅ ∅
VDD VDD
VDD
∅ ∅
1
∅ ∅
The above circuit would require sharp clock edges for correct operation.