





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!






EE 534 summer 2004University of South Alabama
memory.
sequential
logic circuits
Shift
registers
flip-flops
EE 534 summer 2004University of South Alabama
Sequential Logic
Combinational
Logic clock
Outputs
(^) StateRegisters
NextState
Inputs CurrentState
EE 534 summer 2004University of South Alabama
Latches vs Flipflops ^ Latches
z^ level sensitive circuit that passes inputs to Q when the clock ishigh (or low) - transparent mode z^ input sampled on the falling edge of the clock is held stablewhen clock is low (or high) - hold mode ^
Flipflops (edge-triggered)^ z^
edge sensitive circuits that sample the inputs on a clocktransition-^
positive edge-triggered: 0
→ 1
-^ negative edge-triggered: 1
→ 0
z^ built using latches (e.g., master-slave flipflops)^ Flip-flop: not transparent—reading input and changing output areseparate events.
Memory element parameters ^
Setup time: time before clock during which data inputmust be stable. ^
Hold time: time after clock event for which data inputmust remain stable.
clockdata
EE 534 summer 2004University of South Alabama
Dynamic latch Stores charge on inverter gate capacitance:
EE 534 summer 2004University of South Alabama
CMOS R-S Fip Flop (cont.) ^
When S = logic 0 and R =logic 1, then output Q isforced low, output
goes
high, and the flip-flop isin a reset condition. ^
Again, a logic 1 at both Sand
R is considered to be a forbidden or anonallowed condition,since the resultingoutputs are notcomplementary.
EE 534 summer 2004University of South Alabama
SR Flip Flop
disallowed 0 0 1 1
reset 1 0 1 0
set
0 1 0 1
memory Q Q 0 0
SR-Flip Flop (SR FF) EE 534 summer 2004University of South Alabama
S R
Q S R^
Q
S^
R^
Q^
Q
0101
0011
Q 100
Q 010
S R
Q Q
Q S R^
Q
S^
R^
Q^
Q
1010
1100
Q 101
Q 011
Q Q
quiescent state
characteristic table
setresetforbidden
Later state underterminable ifS/R switch simultaneously!!
NOR based NAND based
EE 534 summer 2004University of South Alabama
Other Latches ^
Clocked SR latch^ z^
Adds clock input. Latch output can only beset/reset when clk=1 (or clk=0) ^
Other latch types:^ z^
JK latch: Removes “not allowed” state - toggleswhen inputs are both 1 z^ T latch: Toggles when input = 1 z^ D latch: Output = input
Clocked NOR based SR latched
EE 534 summer 2004University of South Alabama
Clocked D Latch
clock
D Latch
clock clock
transparent modehold mode
TG MUX Based Latch Implementation
clk clk !clk
clk !clk
input sampled(transparent mode) feedback(hold mode)
D Latch clk
EE 534 summer 2004University of South Alabama Clocked JK- Latch/flip flops
S R
Q Q^
Q
J φ K
Q J K^
Q
Jn^
Kn^
Q^ n+
0 011
01 01
Qn 01 Qn
(b)
(c)
Q
(a)
φ
^
addition of clock (synchronous) ^
elimination of forbidden inputs ^
may race when
J=K=
during
φ =
^
latch: any input is reflected at the output aftera nominal delay (latch is open when
φ =
)
All of the SR latched circuits discussed in the last lectures are asynchronousCK
CK
CK 1 1 1 1
Switches its statedue to feedback(toggle)
Problem: during toggling mode the output of the circuit oscillate continuouslyuntil either clock becomes inactive, or one of the input signal goes to zero.
Possible solution!!
=Toggle switch
Master Slave (MS) edge triggered D flip flop Master is a positive level sensitive, while slave is negative level-sensitive
Flip-Flop: Timing Definitions EE 534 summer 2004University of South Alabama
C Κ^ In Out
Data stable
t^ setup Data stable
t^ hold t^ pFF
The data must be present on the S input of the FF a certain time beforewe apply the clock signal.
The time between In going high (low) and clock rising falling) edgeis termed the setup time.
How long does the input D or S haveto remain on the input of the FF afterthe clock pulse applied?
T^ ≥
tsetup
t hold^
tpFF
Consequences of set-up time violation Input D switches from 10 immediately before theClock transition occurs,which is setup time violation.
EE 534 summer 2004University of South Alabama
MS ET Implementation
D clk
Master
Slave
clk !clk
MS ET Implementation
D clk
Master
Slave
clk !clk
master transparent
slave hold
master hold slave transparent
EE 534 summer 2004University of South Alabama
CMOS Dynamic Shift Registers ^ The operation of the CMOSshift register is similar tothe NMOS register exceptfor the voltage levels. ^ For example, when v
=φI
Then v
DD^
and v
when
φ^2
goes high, then v
o
switch to zero, v
=vo^
^
Thus input signal is shiftedto the output during oneclock cycle.
Dynamic transmission gate edge-triggeredregisters
clk clk
clk clk
clk clk
master
slave
tsu^
thold
tc-q
EE 534 summer 2004University of South Alabama
Dynamic transmission gate edge-triggered registersrace Conditions
!clk clk
clk !clk
clk !clk
0-0 overlap race conditiontoverlap0-
< t
+tT
1-1 overlap race conditiontoverlap1-
< t hold
(1,1) overlap
(0,0) overlap
data must be stable duringthe high-high overlap period
0-0 race fixed by making sure there is enough delaybetween D and C2 so that new data sampled by the masterdoes not propagate to the slave