Introduction to Logic Circuit Design (University of Utah) - SR Latches & DFFs (Lecture 17)
Overview
The lecture moves from combinational logic to sequential circuits, explaining how stored state makes outputs depend on both current inputs and past behavior. It develops state diagrams and state encoding, then builds memory elements from cross-coupled gates, compares SR and D latches, and shows how master-slave latches produce edge-triggered D flip-flop behavior.
Key takeaways
- A sequential circuit combines combinational logic with memory, so its output can depend on both current inputs and the state retained from earlier behavior.
- Three states require only two binary state bits, leaving one of the four possible codes unused and available as a don't-care during logic derivation.
- A cross-coupled SR latch stores a bit through feedback, but asserting Set and Reset together produces an invalid condition in which the complementary outputs are both low.
- A clocked D latch can be formed by driving the SR inputs with D and its inverse; it follows D while enabled and holds its value while disabled.
- Two latches with opposite clock phases form a master-slave D flip-flop, transferring data to the output at a clock edge instead of allowing Q to track D across an entire clock level.
- A clock-input bubble marks falling-edge sensitivity, while an unbubbled clock input marks rising-edge sensitivity.
Chapters
- Lecture 17B restarts the sequential-circuit material introduced before the midterm.
- The planned topics include state diagrams, memory elements, latches, SR latches, and positive-edge-triggered DFFs.
- The course shifts from combinational logic toward circuits that retain information.
- Combinational circuits, such as adders and multipliers, produce outputs determined by their current inputs.
- Sequential-circuit outputs also depend on the circuit's state, which reflects prior behavior.
- Memory lets a circuit retain a result even after its input is disconnected.
- A smoke detector illustrates why memory matters: a brief detection pulse can be retained rather than disappearing immediately.
- A sequential circuit combines logic that computes with memory elements that store information.
- Stored results can feed later combinational stages, allowing calculations to proceed across multiple steps.
- State diagrams represent states as circles and transitions as arrows labeled by input conditions.
- The example uses input W and states including A, B, and C to show how input and prior state govern behavior.
- A state table organizes each present state, input condition, resulting next state, and output.
- State diagrams and state tables provide different representations of the same sequential behavior.
- Unlike symbolic state names such as A, B, and C, digital hardware uses binary state assignments.
- State-assignment tables include binary codes for states and can use don't-care entries for unused codes.
- The example has three states, so two binary variables are sufficient to encode them.
- Two state bits provide four possible codes, leaving one code unused for the three-state machine.
- An unused state code can be marked as a don't-care when deriving logic, because it has no defined state transition.
- The usual design sequence is to draw a state diagram, make a state table, assign binary codes, then derive the circuit.
- Feedback between two inverters can preserve a logic value after the original input is removed.
- The stored value persists because each inverter reinforces the other gate's output.
- A simple wire cannot retain a value independently of its input, so it does not provide the same memory behavior.
- The inverter-loop approach is not a complete practical solution because changing the stored value can create conflicting drive conditions.
- A cross-coupled SR latch uses separate Set and Reset inputs to control the stored output Q.
- Set activates Q to 1, while Reset activates Q to 0; with both inputs inactive, feedback preserves the previous value.
- Activating Set and Reset simultaneously drives both complementary outputs low in the illustrated circuit.
- That simultaneous-input condition is considered invalid because Q and its complement are expected to have opposite values.
- Timing diagrams plot input and output voltages against time to show how latch values change.
- The output Q and complementary output are traced from the Set and Reset waveforms.
- Each interval must be evaluated using the latch's current stored state as well as the inputs.
- The exercise emphasizes that the shown input waveform determines which cases need analysis.
- A clock is a periodic signal used to regulate when input changes are allowed to affect a circuit.
- The clocked SR structure prevents S and R changes from changing the stored output while the clock is low.
- When the clock enables the latch, Set and Reset can affect the output according to their values.
- The clock therefore defines a time window for valid input influence rather than storing data by itself.
- The D-latch construction connects D to Set and the inverted D signal to Reset.
- That arrangement prevents Set and Reset from being asserted together, avoiding the SR latch's invalid input case.
- When the clock is high, Q follows D; when the clock is low, Q retains its previous value.
- Timing analysis shows that changes to D during the disabled clock interval do not immediately change Q.
- The master-slave structure connects two D latches in series, with the first called the master and the second the slave.
- The master receives the data input D, while the slave receives the master's output.
- The two stages use opposite clock polarities, so they are enabled during different clock levels.
- This arrangement prevents the output from continuously following D throughout an enabled clock level.
- The master output QM updates while its latch is enabled and otherwise holds its prior value.
- The slave is driven by QM and an inverted clock, so it becomes enabled during the opposite clock phase.
- Tracing QM and the slave output separately clarifies why the final Q changes at a clock transition rather than continuously.
- The example shows the stored input transferring from the master stage to the output stage.
- A level-sensitive latch can respond throughout the interval when its clock-enable level is active.
- A flip-flop changes its output only at a clock edge, sampling the input at that transition.
- The demonstrated master-slave arrangement updates at the falling edge because the slave receives the inverted clock.
- After the edge, changes to D do not affect Q until another active edge.
- A small bubble on a clock input indicates falling-edge sensitivity, corresponding to a transition from 1 to 0.
- Without the inversion bubble, the clock symbol indicates rising-edge sensitivity, corresponding to a transition from 0 to 1.
- The DFF symbol communicates which transition triggers sampling, distinguishing edge behavior from a latch's clock level.
- The lecture relates the symbol's polarity marking to the timing-diagram behavior of the master-slave circuit.
- The final timing analysis tracks an initial clock and output state before applying new input values.
- Changing D while the clock remains stable does not change the flip-flop's output.
- Q updates at the triggering clock transition and then holds that sampled value until the next triggering edge.
- This confirms the central distinction between edge-triggered DFFs and level-sensitive D latches.
Transcript excerpt
0:27 Good afternoon. Today we have our lecture 17 B the reason that is B is because of if you remember we little talked about this chapter before the midterm but we start over and we gna talk about the materials before continuing how was the meter was it at the level of what you were expecting Yeah. in feedback please feel free to share with me ask for the second round of feedback hopefully this week or next week so you
1:15 can give but any time you can come and talk with me if you have any comments any opinion all right so yeah so there are lot of material that we want to talk about we little talk about sequential circuits in general we saw diagram from and now we going to review them and then we going go further and talk about memory elements we going to see what is the simplest memory element that we can build what are latches what is latch and what is master slap flop and positive shake flop so and so we gna get familiar with all of these topics hopefully homework step deadline would be this upcomingay for
2:08 the mat enough session tomorrow as usnes 5 pm at here if you join res any questions before we start all right so if you remember we talked about that we talk about this topic that so far whatever that we have learned are called combinational circuit so we know how to design a calculator hopefully we know how to design a multiplier an add a subtractor we have learned all of that what we have not learned is one of the features
2:57 of laptop that you get yourone or any other thing is that how much memory does it but we haven even though that is a
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MEDAL-Research.