Intseq
Intseq
Last lecture
End of combinational logic
Very fast introduction to Verilog
Today
Sequential logic
Latches
equal open/closed
equal open/closed
equal open/closed
equal open/closed
X1 Z1
X2 Z2
• switching •
• network •
• •
Xn Zn
"1"
"stored value"
"0"
"remember"
R Q
Q
R
S Q'
S
Cross-coupled NAND gates
similar to inverter pair, with capability to force output to 0 (reset=0) or
1 (set=0)
S' Q
Q
S'
R' Q'
R'
R Q
S Q'
R
S
Q
\Q
R Q
Q Q'
Q' 1 1
S
Q Q'
R Q 0 0
SR=11 SR=11
SR=00
SR=00 SR=11
S Q' SR=01 SR=10
SR=10
SR=00 SR=00
SR=01 SR=10
Q Q' SR=01 Q Q'
0 1 1 0
SR=01 SR=10
SR=11
Q Q'
SR=11 0 0 SR=11
SR=00 SR=00
R Q
S Q'
S R Q(t) Q(t+)
0 0 0 0 S
hold
0 0 1 1
0 0 X 1
0 1 0 0
reset
0 1 1 0 Q(t) 1 0 X 1
1 0 0 1
set R
1 0 1 1
1 1 0 X not allowed characteristic equation
1 1 1 X Q(t+) = S + R’ Q(t)
R R' R
Q Q
enable'
S Q' Q'
S' S
Set Reset
100
S'
R'
enable'
Q
Q'
period
R' R
Q
clock'
Q'
S' S
clock