









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 -
Circuits require memory to storeintermediate data
Sequential circuits use a periodic signal todetermine when to store values.^ ^
A^
clock
signal can determine storage times
EE -
^ A
clock
signal can determine storage times
^ Clock signals are periodic
Single bit storage element is a flip flop
A basic type of flip flop is a latch
Latches are made from logic gates^ ^
NAND, NOR, AND, OR, Inverter
Combinational
circuit
FlipFlops
Outputs
Inputs
Nextstate
Presentstate
Timing signal
(clock)
Clock
Clock a periodic external event (input)^ synchronizes when current state changes happen
keeps system well-behaved
makes it easier to design and build large systems
A stable value can be stored at inverteroutputs
State 1
State 2
S R
Q Q’
Set
1
Store
0
Reset
1
Not allowed
Latch made from cross-coupled NANDs
Sometimes called S’-R’ latch
Usually S=1 and R=
S=0 and R=0 generates unpredictableresults
Latches
R’^
Q
C’
Latch is level-sensitive, in regards to CLatch is level-sensitive, in regards to C
Only stores data if C’ = 0Only stores data if C’ = 0
Latch operationLatch operation
enabled byenabled by
S’ Input samplingenabled by gates
Q’
C’
Outputs changeOutputs changewhen C is low:when C is low:RESET and SETRESET and SETOtherwise: HOLDOtherwise: HOLD
Q Q’
C
D^
^
Q
indicates the previous state (the previously 0 stored value)
Q’
C^
’ Store 0
Reset
Set
Disallowed
’ Store 0
C^
Latches are based on combinational gates (e.g.NAND, NOR) ^
Latches store data even after data input has beenremoved ^
S-R latches operate like cross-coupled inverterswith control inputs (S = set, R = reset) EE -
with control inputs (S = set, R = reset) ^
With additional gates, an S-R latch can beconverted to a D latch (D stands for data) ^
D latch is simple to understand conceptually^ ^
When C = 1, data input D stored in latch and output as Q When C = 0, data input D ignored and previous latchvalue output at Q