



































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!




































E&CE 223 Digital Circuits and Systems^
into a circuit that act like^ memory
and store a
^ Outputs are then a function of both the current circuit inputs and the systemstate.
docsity.com
E&CE 223 Digital Circuits and Systems^
docsity.com
E&CE 223 Digital Circuits and Systems^
0-> 1^ and from 1 -> 0^ occur at discrete instances in time. The^ 0 -> 1^ transition is often called the
rising edge^ of the clock. ^ The^ 1 -> 0^ transition is often called the
falling edge^ of the clock.
E&CE 223 Digital Circuits and Systems^
at logic levels 0 or 1 ,^ not^ on^ logic transitions^ from^ 0 -> 1 or 1 -> 0. Latches are not really too useful for synchronous sequential circuits (they are forasynchronous circuits), but form the basis from which flip-flops are built.
docsity.com
E&CE 223 Digital Circuits and Systems^
Page 7
outputs are complements^ of each other (this is why they are labeled^ Q^ and
: Q ): When S=1, R=0 the output is Q=1,^ :Q=0^ and the circuit in the
set state. ^ When^ S=0, R=1^ the output is^ Q=0,
:Q=1^ and the circuit in the^ reset state
^ So, S=1 (active high) implies set (Q=1) and R=1 (active high) implies reset (Q=0). ^ When^ S=0, R=0^ the output^ holds
at its previous value ( storage ). ^ When^ S=1, R=1^ the output is^ Q=
:Q=0^ which is not desirable. We want to avoid this combination of inputs.
docsity.com
E&CE 223 Digital Circuits and Systems^
docsity.com
E&CE 223 Digital Circuits and Systems^
enable signal. ^ Consider adding some extra NAND gates in front of an S’R’ Latch. ^ This gives us a^ SR Latch with control input
docsity.com
E&CE 223 Digital Circuits and Systems^
Page 11
^ When the control input^ C=0 ,^ ^ The inputs to the latch are
both 1 which puts the SR latch into hold state
^ The latch outputs will not change regardless of S and R values
. docsity.com
E&CE 223 Digital Circuits and Systems^
when^ C=1 (bad!) ^ The solution is to construct a latch where S and R can never have the samevalue.
docsity.com
E&CE 223 Digital Circuits and Systems^
^ The output Q^ follows^ input D when the control input
C=1. docsity.com
E&CE 223 Digital Circuits and Systems^
^ Note: as illustrated, this means the inputs are
active low ; i.e., we^ set^ when^ S=0^ (and R=1) and we^ reset^ with^ R=0^ (and S=1).
docsity.com
E&CE 223 Digital Circuits and Systems^
^ Note: For a D Latch, the control input is
required , since it is via the control input that we have the^ hold state.
docsity.com
E&CE 223 Digital Circuits and Systems^
level sensitive. ^ Consider a D-Latch with the clock signal connected to the control input. ^ Output of the latch can change anytime while the clock is at its active level. This creates an^ interval in time^ over which the state, or output, of the memoryelement can change rather that an
instant in time^ at which the state, or output, of the memory element can change. It would be^ better^ to only allow the output to change when the clock edge makes atransition from^^0!^1 (rising edge triggering) or
^1!^0 (falling edge triggering).^ This gives even more precise control! Flip-flops give more precise control by being edge-triggered.
docsity.com
E&CE 223 Digital Circuits and Systems^
to the flip-flop^ just before^ the clock changes from^^0!^1 causes the^ output^ to change
just after^ the clock changes from
^ Negative Edge Triggering. The
input^ to the flip-flop^ just before^
the clock changes from^^1!^0 causes the^ output^ to change
just after^ the clock changes from
^1!^0. docsity.com