- Learn
- Engineering
- Electrical Engineering
- Digital Logic Design
- Synchronous Sequential Logic
Synchronous Sequential Logic
BeginnerLesson 4 of 7 in Digital Logic Design Course
What you will learn
- Explain how feedback lets a circuit remember a bit, and describe and trace SR and D latches and D, JK and T flip-flops.
- Explain sequential circuits and the SR latchTell sequential circuits from combinational ones and trace how a cross-coupled SR latch sets, resets and holds a bit.
- Use a D latch and read its timingExplain how a gated D latch removes the invalid input, follow it through transparent and holding phases, and read a latch timing diagram.
- Build and use edge-triggered D flip-flopsExplain how an edge-triggered D flip-flop samples its input once per clock cycle, compare it with a latch, and use preset, clear and enable.
- Describe JK and T flip-flopsUse the characteristic tables and equations of JK and T flip-flops, trace them, and build them from a D flip-flop.
- Explain sequential circuits and the SR latch
- Apply the rules of synchronous design and calculate whether a clocked circuit meets its setup and hold constraints, including the effects of clock skew and metastability.
- Describe the clock and the rules of synchronous designDescribe clock period, frequency and duty cycle, and explain the rules that make synchronous circuits predictable.
- Calculate setup and hold limits and the maximum clock frequencyUse flip-flop and logic delays to check the setup and hold constraints, find the shortest clock period, and fix violations.
- Account for clock skew and metastabilityInclude clock skew in the timing constraints, explain metastability, and use a two-flip-flop synchronizer and its mean time between failures.
- Describe the clock and the rules of synchronous design
- Derive equations, state tables and state diagrams from a given clocked circuit and predict its state and outputs for an input sequence.
- Derive equations and a state table from a D flip-flop circuitWrite the input, next-state and output equations of a circuit with D flip-flops and build its state table.
- Draw state diagrams and trace input sequencesTurn a state table into a state diagram, follow it through an input sequence and describe the circuit's behavior in words.
- Analyze circuits with JK and T flip-flopsUse the characteristic equations of JK and T flip-flops to find next states from their input equations.
- Derive equations and a state table from a D flip-flop circuit
- Turn a word description into a Moore or Mealy state diagram, reduce and encode its states, and derive and check the logic for D, JK or T flip-flops.
- Compare Moore and Mealy machinesDefine finite state machines, tell Moore and Mealy machines apart, and compare their outputs, timing and number of states.
- Turn a word description into a state diagramDecide what each state must remember, add a transition for every input in every state, and test the diagram with input sequences.
- Reduce the number of statesFind equivalent states with row matching and the implication table, merge them, and judge what reduction gains.
- Choose a state assignmentEncode states with binary, Gray or one-hot codes, count the flip-flops needed, and compare how the assignment changes the logic.
- Derive flip-flop input equations and complete the designUse excitation tables and Karnaugh maps to derive the logic for D, JK or T flip-flops, handle unused states and check the finished circuit.
- Compare Moore and Mealy machines
Synchronous Sequential Logic study guide
1Store a bit and control when it changes
Memory lets a circuit respond to what happened earlier. Feedback first gives us a bit that can hold its value; set, reset, data and clock inputs then let us control it. Follow signals through SR and D latches, compare a transparent latch with an edge-triggered D flip-flop, and use the JK and T rules to predict changes at clock edges. The distinction between a level and an edge is the basis of every circuit that follows.
1.1 Feedback and the SR latch
A combinational circuit computes its outputs from its current inputs. A sequential circuit also remembers a state. One press of a push-on, push-off button can turn a lamp on or off because the lamp's stored state differs before the two presses.
How feedback stores a bit
Connect two inverters in a loop. If one output is 1, the other is 0, and feeding those values back supports the same pair. The opposite pair is stable too. This bistable circuit can hold one bit while power stays on. A circuit with one-bit storage elements has at most states; three bits allow eight combinations.
The loop needs control inputs to choose its state. An SR latch provides set and reset through two cross-coupled gates. For the NOR version, S and R are active-high: a 1 asserts the named action. A NOR gate produces 0 whenever any input is 1.
| S | R | Result |
|---|---|---|
| 0 | 0 | Hold the stored value |
| 1 | 0 | Set Q to 1 |
| 0 | 1 | Reset Q to 0 |
| 1 | 1 | Invalid: both outputs are 0 |
To see a set operation, assert S while R is 0. S forces the complementary output low. That low value feeds the other gate, allowing Q to become 1. After S returns to 0, feedback preserves Q = 1.
Follow a sequence
Start with Q = 0 and apply the input pairs SR in order:
- 00 holds Q at 0.
- 10 sets Q to 1.
- 00 holds Q at 1.
- 01 resets Q to 0.
- 00 holds Q at 0.
The same input 00 produces different outputs because the latch remembers the preceding action.
With S = R = 1, both NOR outputs are 0 and cease to be complements. If both inputs are released together, small gate-delay differences decide the final value; brief oscillation or metastability can occur. If R returns to 0 first while S stays high, the latch is set. This invalid combination is not a toggle command.
Check which input level is active
A NAND SR latch uses active-low inputs, written S' and R'. A bubble or overbar also marks active-low operation.
| S' | R' | Result |
|---|---|---|
| 1 | 1 | Hold |
| 0 | 1 | Set Q to 1 |
| 1 | 0 | Reset Q to 0 |
| 0 | 0 | Invalid: both outputs are 1 |
A changeover switch can drive these two inputs for debouncing. The first contact closure sets or resets the latch. Bounces repeat that action or briefly leave both inputs high, which holds the value. The switch arrangement keeps both inputs from being asserted together.
A gated SR latch adds an enable C. With C = 0, the latch holds regardless of S and R. With C = 1, its normal SR rules apply, including the invalid case. A clocked synchronous circuit uses storage to break feedback paths and controls state changes with a shared clock; an ordinary SR latch by itself has no such clock control.
Key Takeaways
- Feedback supports two stable bit values.
- NOR SR inputs are active-high; NAND SR inputs are active-low.
- The inactive input pair holds the previous state.
- Asserting both SR inputs gives an invalid output pair.
- An enable controls when a gated SR latch accepts commands.
1.2 The open and closed phases of a D latch
A D latch accepts one data value, D, under an enable C. It removes the need to choose separate set and reset commands. For an active-high latch, C = 1 opens the latch and C = 0 closes it.
Make set and reset agree
The gated SR inputs are formed as
If C = 0, both inputs are 0 and the NOR latch holds. If C = 1, D = 1 asserts set and D = 0 asserts reset. In the logic model, D and D' cannot both be 1, so the invalid SR input is excluded.
The behavior can be written as
When C is 1, the first term passes D. When C is 0, the second term preserves the stored value. Here “next” describes the latch's response during its enabled level, with no clock-edge wait.
Trace the transparent interval
While C = 1, the latch is transparent: Q follows D after the small internal delay. Every change of D during that interval matters. While C = 0, it is opaque: Q holds the value captured as the latch closed. An active-low latch reverses the open and closed levels; a bubble on its enable identifies that version.
Consider an ideal timing diagram with C high from 10 to 15 ns, 20 to 25 ns and 30 to 35 ns. D is 1 from 3 to 12 ns, 0 from 12 to 22 ns, 1 from 22 to 24 ns and 0 afterward. Start with Q = 0.
| Time | What happens | Q |
|---|---|---|
| 3 ns | D rises while the latch is closed | 0 |
| 10 ns | C rises and the latch opens onto D = 1 | 1 |
| 12 ns | D falls while the latch is open | 0 |
| 15–20 ns | The latch is closed | 0 |
| 22 ns | D rises during the second open interval | 1 |
| 24 ns | D falls before that interval ends | 0 |
| 25 ns onward | The latch closes on 0 and later opens onto 0 | 0 |
To draw Q, first shade the high intervals of C. Copy D during those intervals. At each falling edge of C, carry the last D value horizontally through the closed interval. Use zero delay for an ideal diagram; include the stated gate delay when one is supplied.
Why a level is different from an edge
A rising-edge-only interpretation misses the changes at 12, 22 and 24 ns. The latch responds throughout its enabled level. A short D glitch during that level can therefore appear at Q, even if it ends before the latch closes.
Feedback makes this distinction especially important. If a transparent latch has , every output change drives the opposite value back to its input. It can keep changing while C stays high, with timing set by gate delays. An edge-triggered flip-flop instead accepts a new state once per active edge, which gives a clocked feedback circuit a defined update moment.
Key Takeaways
- An active-high D latch follows D for the entire time C is high.
- When C becomes low, the latch holds the last accepted value.
- The D input supplies complementary set and reset commands.
- An input pulse can pass through during transparency.
1.3 Sampling with a D flip-flop
A D flip-flop samples D at an active clock edge and holds that sample between edges. A positive-edge device samples on a 0-to-1 clock transition; a negative-edge device samples on a 1-to-0 transition. The clock symbol has a triangle, with a preceding bubble for falling-edge triggering.
Capture once per cycle
The characteristic equation is
D is evaluated at the active edge. A later D change does not pass through to Q during the same cycle. In real hardware Q responds after a clock-to-Q delay; ideal traces omit this delay.
One positive-edge construction uses two D latches in series. The master is transparent while the clock is low, and the slave is transparent while it is high. During the low phase, the master follows D and the slave holds the old Q. At the rising edge, the master closes on D and the slave opens onto that captured value. Changes at the external D input during the high phase cannot pass the closed master.
| Storage element | When it accepts D | Behavior between sampling moments |
|---|---|---|
| Active-high D latch | Throughout the high enable level | Follows D while open |
| Positive-edge D flip-flop | At each rising edge | Holds the sample |
Compare the same waveform
Let the rising edges occur at 10, 20 and 30 ns. D is high from 3 to 12 ns, low from 12 to 22 ns, high from 22 to 24 ns and low afterward. Starting at Q = 0, the samples are 1, 0 and 0. Q is therefore high from 10 to 20 ns and low after 20 ns.
The 22–24 ns pulse is missed because it contains no rising edge. An active-high D latch would pass that pulse during its high-enable interval. Calling both devices “storage” does not make their timing interchangeable.
Reset, preset and enable
An asynchronous clear forces Q to 0 without waiting for an edge. An asynchronous preset forces Q to 1. These direct controls override normal sampling and are often active-low. Check their input bubbles. They can establish a known starting state at power-up.
A synchronous reset waits for the active edge. For an active-high reset that takes priority over D, the data-path logic can be
An enable chooses whether to load or hold at the edge. A multiplexer before D selects new data when EN = 1 and feedback Q when EN = 0:
For example, if Q = 1, D = 0 and EN = 0 at a rising edge, the feedback input supplies 1 and the bit holds. At a later edge with EN = 1, it loads 0.
Use this data-path enable to control updates. A plain AND gate in the clock line can delay one device's clock and produce an unintended edge if the enable rises while the clock is high. Several flip-flops on one clock store a multi-bit state; their outputs, often A and B, are the circuit's state variables. Each evaluates its input from the old state at the shared edge.
Key Takeaways
- A clock triangle marks edge triggering; a bubble marks a falling edge.
- A D flip-flop loads D at its active edge.
- Opposite-phase master and slave latches prevent direct transparency.
- Asynchronous clear and preset act without a clock edge.
- Synchronous reset and enable act at active edges.
- A data-path multiplexer provides load-or-hold behavior.
1.4 Hold, set, reset and toggle
Different flip-flop types express different update rules. A characteristic table predicts the next stored bit from the present bit and the inputs. A characteristic equation writes that same behavior as a Boolean function.
The JK rule
An edge-triggered JK flip-flop has four commands:
| J | K | Action at the edge |
|---|---|---|
| 0 | 0 | Hold Q |
| 1 | 0 | Set Q to 1 |
| 0 | 1 | Reset Q to 0 |
| 1 | 1 | Toggle Q |
Its characteristic equation is
With Q = 0, the first term gives J. With Q = 1, the second gives K'. For J = K = 1, these cases give next values 1 and 0 respectively: the bit is complemented. The same input pair is invalid on an active-high SR latch, so always identify the device before using a table.
Start at Q = 0 and apply JK = 10, 00, 11, 11, 01 at successive rising edges. The actions are set, hold, toggle, toggle and reset. The stored values after the edges are 1, 1, 0, 1 and 0. A hold preserves the result of the preceding edge, including when that result is 1.
The T rule
A T flip-flop has one command input: T = 0 holds and T = 1 toggles. Its equation is
From Q = 0, the sequence T = 1, 1, 0, 1 produces Q = 1, 0, 0, 1. T = 1 does not mean “store 1”; it means “change the stored bit.” If T stays 1, two clock edges complete one output cycle. A 10 MHz clock therefore produces a 5 MHz square wave at Q.
Build the behavior with D storage
A D flip-flop stores whatever its input logic computes. Feeding it the characteristic equation implements the desired type:
| Desired behavior | Logic before a D flip-flop |
|---|---|
| JK | |
| T |
You can also tie J = K = T on a JK flip-flop to obtain T behavior. To obtain D behavior from JK, connect J = D and K = D'. When D = 1 the device sets; when D = 0 it resets. D storage with surrounding logic is common in integrated circuits and FPGAs, while JK and T equations can make hand designs convenient when state bits often hold or toggle.
Prediction and design use opposite directions
A characteristic table answers, “What next state results from these inputs?” An excitation table answers, “What inputs produce this desired transition?” Use the first for analyzing an existing circuit and the second for deriving a circuit from a state table.
The edge-triggered requirement still matters. A level-sensitive JK latch with J = K = 1 could toggle repeatedly while enabled. The clock edge gives the intended JK or T update exactly one opportunity per cycle.
Key Takeaways
- JK = 00 holds, 10 sets, 01 resets and 11 toggles.
- The JK equation is .
- T = 1 complements the present bit; T = 0 holds it.
- D input logic can implement JK or T behavior.
- Characteristic tables predict behavior; excitation tables select inputs.
2Give signals time to settle
A shared clock makes state updates orderly only when data arrives at the right time. The slowest path must finish before the next edge, and the fastest path must not disturb the value still being captured at the current edge. Use these two checks to find clock speed and diagnose timing errors, then account for unequal clock arrival times and inputs that have no fixed relationship to the receiving clock.
2.1 Clock cycles and synchronous paths
A clock is a periodic signal that controls when flip-flops sample. Its period is the time between matching active edges, and its frequency is the number of cycles per second:
A 250 MHz clock has a 4 ns period. A 500 ps period corresponds to 2 GHz. Use and when converting. The duty cycle is the fraction of a period for which the clock is high. A 50% duty cycle divides a period evenly between high and low levels; it does not create two rising edges per period.
What happens during a cycle
At an active edge, the state flip-flops sample their input values. Their outputs then become the new present state. Between edges, combinational logic uses that state and the external inputs to compute the values for the next edge.
The circuit has three functional parts:
- The state storage holds the current state bits.
- The next-state logic computes the flip-flop inputs from the present state and inputs.
- The output logic computes outputs from the state alone, or from the state and inputs.
Write Q(t) for the current state bit and Q(t+1) for its value after the next active edge. The symbols Q+, Q* and Q_next are other common names for the next value. These labels count update steps, not seconds.
Break feedback with clocked storage
The synchronous design rules give a circuit a predictable structure:
- Each element is clocked storage or combinational logic.
- At least one element stores state.
- All state storage receives the same clock.
- Every cyclic path passes through clocked storage.
Trace a feedback path from Q through the next-state logic back to a flip-flop input. It can affect the next update, but the flip-flop stops the new input from immediately changing Q again. This gives the logic almost a full cycle to settle and lets timing be checked from one flip-flop to the next.
A combinational feedback loop has no such boundary. Three inverters, each with 10 ps delay, can form a ring oscillator. A transition makes one trip around the loop in 30 ps and a complete oscillation takes approximately ps. An even-inversion loop can hold a value as an unclocked latch. Neither is a substitute for a defined edge-to-edge state path.
Keep the clock and data roles separate
Use a flip-flop enable to hold a value while keeping the common clock. Gating the clock with ordinary logic changes its delay and can generate unintended edges. A push button or another clock domain also introduces a signal that can change at any point in a cycle. It needs synchronization before ordinary synchronous logic relies on it. The shared clock controls the receiving flip-flops; it cannot force an unrelated input to respect their sampling window.
Key Takeaways
- Clock frequency is the reciprocal of period.
- Duty cycle describes the high fraction of a period.
- Next-state logic computes between active edges.
- Every synchronous feedback cycle passes through clocked storage.
2.2 Check the longest and shortest paths
A flip-flop needs a stable input around its sampling edge. Setup time is the required stable interval before the edge; hold time is the required interval after it. Together they form the sampling aperture. A timing check must protect both sides.
Distinguish maximum and minimum delays
| Symbol | Meaning |
|---|---|
| Latest time Q settles after a clock edge | |
| Earliest time Q may start changing after an edge | |
| Longest combinational-path delay | |
| Shortest combinational-path delay |
The longest logic path is the critical path. Propagation delays protect late arrival; contamination delays protect early arrival. Using the maximum delay in a hold calculation misses the very path most likely to cause the problem.
Setup: arrive before the next edge
One flip-flop launches data after an edge. The data then crosses the logic and must settle at the receiver before its next edge:
Equivalently, the logic has a budget . Clock-to-Q plus setup is the sequencing overhead. It consumes part of each cycle even if the logic is very fast.
Take ps, ps and ps. The minimum period is
Thus for setup. A shorter period risks sampling before the new data is ready.
Hold: protect the current edge
The receiver must retain the old input long enough after the same edge that launches the new value. The earliest possible new arrival must satisfy
With ps, ps and ps, the earliest arrival is 55 ps. It is 5 ps too early. The shortest logic path needs at least ps of contamination delay.
This circuit has a setup limit of 2 GHz but still has a hold violation. Meeting the setup period does not guarantee correct operation. A hold violation can cause the wrong value or metastability; it does not force failure on every edge.
Choose a repair that addresses the path
| Violation | Useful repairs |
|---|---|
| Setup | Increase the period, shorten the critical path or use faster storage |
| Hold | Add delay to the short path or use a smaller hold-time requirement |
The clock period is absent from the hold inequality, so slowing the clock cannot repair that violation. Adding buffers can help hold but also increase the longest delay; recheck setup afterward. With a direct flip-flop connection, , so the requirement is .
An external input must meet the first receiving flip-flop's setup and hold times too. A circuit output appears after clock-to-Q and its output-logic delay; a Mealy output also has an input-to-output logic path.
Key Takeaways
- Setup uses maximum delays and the next receiving edge.
- Hold uses minimum delays and the same receiving edge.
- The setup-limited period is .
- Hold requires .
- A slower clock fixes setup margin but cannot fix hold.
- A delay added for hold must also be checked against setup.
2.3 Skew and inputs that arrive between clocks
A shared clock does not arrive everywhere at exactly the same time. Wires and buffers introduce clock skew, a difference in arrival time between launching and receiving flip-flops. An unrelated external input introduces a different problem: its timing is not controlled by the receiving clock at all.
Budget for worst-case skew
Let be the nonnegative worst-case magnitude to cover either clock-arrival direction. The conservative constraints are
An early receiving edge shortens the setup budget. A late receiving edge extends the hold window into the arriving new data. These are different worst cases; one particular signed skew does not hurt both checks in the same way.
With the 80 ps clock-to-Q, 370 ps logic and 50 ps setup path, a 20 ps skew budget raises the minimum period to 520 ps. The setup-limited maximum frequency is about 1.92 GHz. For a 60 ps hold requirement and 30 ps minimum clock-to-Q delay, the shortest path now needs ps. A 25 ps path is 25 ps short.
Why an asynchronous input can go metastable
A button, sensor or different clock domain can change its signal inside the sampling aperture. The receiving flip-flop may become metastable, remaining between valid logic levels before settling to 0 or 1. Either final value is possible, and there is no fixed upper bound on the settling time. The chance of still being unresolved falls approximately as , where is a device time constant.
A two-flip-flop synchronizer places two D flip-flops in series on the receiving clock, with no logic between them. The first may go metastable; the second samples it a cycle later, allowing almost a full period for resolution. The synchronized signal is delayed by about one to two cycles. A third stage can reduce the remaining risk further. Independent one-bit synchronizers cannot preserve a multi-bit word: different bits may be accepted on different edges.
Interpret the reliability model
A common model is
MTBF is mean time between synchronization failures, not a guaranteed failure-free lifetime. Here is available resolution time, a device window constant, the receiving frequency and the input-change rate. More resolution time improves reliability exponentially; higher event rates reduce MTBF when the other quantities stay fixed.
For MHz, MHz, ps, ps and available ns, the exponent is 38 and the denominator is 50000 per second. MTBF is about s, roughly 20 thousand years. The simplified 2 ns period minus 100 ps setup budget gives that 1.9 ns value. If inserted logic leaves only 500 ps, the exponent falls to 10 and MTBF becomes about 0.44 s. Keeping the interstage path short preserves resolution time.
Key Takeaways
- Worst-case skew consumes both setup and hold margin.
- A sampling-window violation can cause metastability.
- A synchronizer gives the first stage time to resolve.
- Use the receiving clock for both synchronization stages.
- More resolution time increases MTBF exponentially.
- Separate one-bit synchronizers cannot preserve multi-bit consistency.
3Read a circuit as a sequence of states
A circuit diagram tells you how gates and storage are connected; a state table tells you how the circuit behaves over time. Name the stored bits, derive their update rules, and evaluate every present-state and input combination. Then draw the same information as a diagram and trace a sequence of inputs. D, JK and T circuits use different input rules, but all can be described by the same kinds of state tables and diagrams.
3.1 From D input logic to a state table
Analysis starts with a given circuit and predicts its behavior. The flip-flop outputs are its state variables. The input logic, next-state logic and output logic must be kept distinct, even when some of their equations look alike.
Read the equations in a fixed order
- Name the state bits, inputs and outputs.
- Read the combinational logic feeding each flip-flop input.
- Apply the flip-flop's characteristic equation to obtain the next-state equations.
- Read the output equation.
- Evaluate every state-and-input combination.
For D storage, the third step is particularly simple: the next bit equals its D input. Consider state bits A and B, input x and output y:
Then and . The output equation still uses present A and B. It does not use A(t+1) and B(t+1).
Work one row completely
Take present AB = 01 and x = 0. The first state bit has
The second has
The next state is therefore 10. The present output is . After the edge, once the new state and output logic settle, state 10 has output 1. Writing 1 in the present row's output column would shift the output by a cycle.
Fill the complete table
A compact table has one row per state and separate next-state columns for each input.
| Present AB | Next AB, x = 0 | Next AB, x = 1 | Present y |
|---|---|---|---|
| 00 | 00 | 01 | 0 |
| 01 | 10 | 01 | 0 |
| 10 | 00 | 10 | 1 |
| 11 | 10 | 10 | 0 |
For x = 0, the equations reduce to next A = B and next B = 0. This fills the second column directly. For x = 1, next A = A and next B = A', which fills the third column. Checking both simplified input cases is a quick way to find a swapped bit or missing complement.
With m state bits and n binary inputs, the expanded table has rows. Two state bits and one input require eight rows; three bits and two inputs require 32. The compact table above contains the same eight state-and-input cases in four rows.
Keep outputs and possible states explicit
Because y depends only on state, one output column per state is enough: this is Moore behavior. An output such as depends on x too and needs an output for each state-and-input case: this is Mealy behavior.
Keep AB in the same order throughout: 10 means A = 1 and B = 0. Include state 11 even if normal operation never enters it. Without a known reset, the circuit may start there, and the input equations still determine what it does. For JK and T storage, a gate-input value is a command; it must first pass through the characteristic rule before becoming a next-state bit.
Key Takeaways
- State variables are the flip-flop outputs.
- D input equations directly give the next-state bits.
- Evaluate outputs from present state and current inputs.
- An expanded table has state-and-input rows.
- Keep state-bit order fixed and include every code.
3.2 Draw arrows and trace cycles
A state diagram gives a visual route through the same cases as a state table. Each circle represents a state, and each arrow represents a possible transition at an active edge. The input label tells you which arrow to follow.
Put outputs in the right place
| Machine | Circle label | Arrow label |
|---|---|---|
| Moore | State name/output | Input |
| Mealy | State name | Input/output |
For a Moore circle labeled “10/1”, 10 is the state code and 1 is its output. For a Mealy arrow labeled “1/0”, input 1 produces output 0 on that transition. The slash does not name a source state and destination state.
With one binary input, every state needs a route for 0 and a route for 1. Two routes can share an arrow if they have the same destination and applicable output. A self-loop is still a transition: it loads the same state again.
Convert a table to arrows
Use the circuit , and . Draw four Moore circles: 00/0, 01/0, 10/1 and 11/0. Add these arrows:
- From 00: x = 0 returns to 00; x = 1 goes to 01.
- From 01: x = 0 goes to 10; x = 1 returns to 01.
- From 10: x = 0 goes to 00; x = 1 returns to 10.
- From 11: either input goes to 10.
No arrow enters 11. Starting from 00, no input sequence reaches it. If the circuit starts in 11, however, its next edge takes it to 10. Reachability is always judged from a specified starting state.
Trace one input at a time
Start in 00 and apply inputs 1, 1, 0, 1, 0, 0. Define a cycle's present state and Moore output before the edge that accepts that cycle's input.
| Cycle | Present state | x | Present y | State after edge |
|---|---|---|---|---|
| 1 | 00 | 1 | 0 | 01 |
| 2 | 01 | 1 | 0 | 01 |
| 3 | 01 | 0 | 0 | 10 |
| 4 | 10 | 1 | 1 | 10 |
| 5 | 10 | 0 | 1 | 00 |
| 6 | 00 | 0 | 0 | 00 |
Carry each row's final state into the next row's present-state column. Do not update A first and then use that new A to calculate B: both flip-flops sample from the same old state.
Read the behavior in words
From reset 00, a run of one or more 1s takes the circuit to 01. The 0 that ends that run takes it to 10, where the output is 1. State 10 persists while x is 1 and returns to 00 on a 0. This description summarizes the routes without attaching a separate meaning to every bit code.
In an ideal timing diagram, state changes occur at the active edge. Physical changes follow clock-to-Q delay. A Moore output depends only on state, but combinational decoding can briefly glitch while several state bits change at unequal times. Its settled value remains fixed while the state remains fixed; an input change alone cannot change it.
Key Takeaways
- Each table case becomes a state-diagram transition.
- A Moore output belongs to a state; a Mealy output belongs to an input-and-state case.
- Trace from a named start and carry the new state to the next cycle.
- All next-state bits use the same present-state values.
- Decoded Moore outputs can glitch briefly during a state change.
3.3 Apply the JK or T rule before updating
The output of a gate feeding J or T is not a next-state bit. It is a command to the flip-flop. To analyze the circuit, first evaluate that command from the present state and then apply the device's characteristic rule.
Two equivalent methods
You can add intermediate columns for J, K or T and use the characteristic table in each row. Alternatively, substitute the input equations into the characteristic equation and simplify. The row method makes hold and toggle actions visible; algebra is useful for compact expressions.
For state bit A, the rules are
and
Notice the complement on K in the JK equation. K = 1 enables resetting a stored 1, so the term that preserves a 1 must use K'.
Analyze a JK circuit
Let , , and . In present state 11 with x = 0:
- A receives J = 1 and K = 1, so it toggles from 1 to 0.
- B receives J = 1 and K = 0, so it stays at the set value 1.
The next state is 01. Both input pairs were evaluated from the original state 11.
| Present AB | Next AB, x = 0 | Next AB, x = 1 |
|---|---|---|
| 00 | 01 | 00 |
| 01 | 11 | 11 |
| 10 | 11 | 10 |
| 11 | 01 | 10 |
Substitution gives the same result:
Check the 11, x = 0 row in these expressions: next A is 0 and next B is 1. A row-by-row check after simplification can catch a lost complement.
Analyze a T circuit
Now let and . Then
| Present AB | Next AB, x = 0 | Next AB, x = 1 |
|---|---|---|
| 00 | 01 | 00 |
| 01 | 00 | 11 |
| 10 | 11 | 11 |
| 11 | 10 | 00 |
In state 11 with x = 1, both T inputs are 1, so both stored bits toggle and the next state is 00. Setting both next bits to 1 would treat the T commands as data values and give the wrong result.
Once the table is correct, draw its state diagram exactly as for D storage. The table describes observable state transitions, independent of how the storage commands were implemented. A designer can therefore implement the same table using D, JK or T flip-flops, with different logic at their inputs.
Key Takeaways
- JK and T inputs must pass through their characteristic rules.
- Evaluate all flip-flop commands from the old state.
- T = 1 toggles either present value.
- The complement on K is essential in .
4Design a finite state machine
A state machine begins with a decision about what the circuit must remember. Give each state a clear meaning, specify every input case, and choose where the outputs belong. Then merge states with identical future behavior, assign bit codes, and derive the flip-flop inputs. The finished design must match the intended input sequences, start in a defined state, and behave acceptably if its storage ever contains an unused code.
4.1 Moore and Mealy output timing
A finite state machine, or FSM, has a finite set of states, inputs, outputs, a next-state rule, an output rule and a reset state. Its hardware combines state flip-flops with next-state and output logic. Moore and Mealy machines differ in what can determine an output.
| Feature | Moore | Mealy |
|---|---|---|
| Output depends on | Present state | Present state and inputs |
| Diagram output label | Inside a state | On an input-labeled arrow |
| Input response | Through a state update | Can occur within the current cycle |
A Moore output settles after a state change. Combinational decoding may glitch briefly during that transition, but changing an input alone cannot change its settled value. A Mealy output can respond during the cycle as an input changes, including producing input-caused glitches. Its intended value can be sampled before the active edge or passed through a flip-flop.
Detect the serial pattern 101
Suppose x supplies one bit each cycle and matches may overlap. A Mealy detector needs three states:
- S0: no useful beginning of 101 has been seen.
- S1: the useful ending is 1.
- S2: the useful ending is 10.
| Present state | x = 0: next/output | x = 1: next/output |
|---|---|---|
| S0 | S0/0 | S1/0 |
| S1 | S2/0 | S1/0 |
| S2 | S0/0 | S1/1 |
The final 1 produces the detection output while the machine is still in S2. Returning to S1 preserves that final bit as the start of another match.
A Moore detector needs a fourth state S3, meaning “101 just seen,” with output 1. S0, S1 and S2 have output 0. Its next states for inputs 0 and 1 are respectively: S0 → S0, S1; S1 → S2, S1; S2 → S0, S3; S3 → S2, S1.
State which cycle an output belongs to
Let each cycle's state be the state before its accepting edge. For inputs 0, 1, 0, 1, 0, 1, 1, 0, 1, the Mealy output is 1 in cycles 4, 6 and 9. The Moore machine enters S3 after each corresponding edge, so its output is 1 in cycles 5, 7 and 10. The extra state lets the output belong to stored state instead of the incoming final bit.
A Mealy implementation often uses fewer states, but this is a design tradeoff, not a requirement for every FSM. Moore is useful for controls that should not react directly to input changes; Mealy is useful when same-cycle response or state count matters.
Convert while keeping output placement clear
To convert Mealy to Moore, split a destination state when incoming transitions require different output values. Each copy has one state output. To convert Moore to Mealy with destination-output timing, place each destination state's output on its incoming arrows. Account for the initial Moore output separately. Under the cycle convention above, detection is observed in the Mealy input cycle and in the following Moore state cycle; matching state names alone does not establish matching timing.
Key Takeaways
- Moore outputs depend only on present state.
- Mealy outputs can depend directly on current inputs.
- A Mealy detector can report a match before its accepting edge.
- A Moore detector reports through the state entered after that edge.
- Conversion must preserve output values and their timing convention.
4.2 Give every state a meaning
A word description says what the machine must do. A state diagram says exactly what it remembers and how that memory changes. Start by listing the inputs and outputs, choosing Moore or Mealy output placement, and naming the reset state.
Store only relevant history
Describe each state in one sentence. For a 101 detector, “the last useful ending is 10” tells you what future input can complete a match. A name such as S2 alone tells you nothing about the required arrows.
Two histories need separate states only if some future input sequence requires different output behavior. The machine need not remember every bit ever received. It remembers enough to decide what to do next.
For a sequence detector, update to the longest ending of the received bits that is also a beginning of the target pattern. In the 101 detector, receiving 1 in S1 gives the ending “11”. Its longest useful suffix is “1”, so stay in S1. Receiving 0 in S2 gives “100”, with no useful suffix, so return to S0.
Preserve overlap when required
From S2, input 1 completes 101. An overlapping Mealy detector outputs 1 and goes to S1 because the final 1 may begin the next match. A non-overlapping detector outputs 1 and goes to S0, starting again with no saved prefix.
For the input sequence 0, 1, 0, 1, 0, 1, 1, 0, 1, overlapping matches finish in cycles 4, 6 and 9. Non-overlapping matches finish in cycles 4 and 9. The cycle-6 match shares a bit with the cycle-4 match. Overlap must therefore be part of the specification before the detection arrow is chosen.
Resetting on every mismatch is a different error. On 1, 1, 0, 1, a detector must retain S1 after the second 1. Throwing away that partial match would miss the final 101.
Specify simultaneous inputs
Consider a Moore turnstile with inputs coin and push. LOCKED has output lock = 1; UNLOCKED has lock = 0. In LOCKED, a coin unlocks it. In UNLOCKED, a push locks it.
| State | Condition | Next state |
|---|---|---|
| LOCKED | coin = 0, either push value | LOCKED |
| LOCKED | coin = 1, either push value | UNLOCKED |
| UNLOCKED | push = 0, either coin value | UNLOCKED |
| UNLOCKED | push = 1, either coin value | LOCKED |
These rules settle coin = push = 1: coin decides from LOCKED, while push decides from UNLOCKED. A specification that names only separate coin and push events leaves that case unanswered.
Audit the diagram before encoding
For every state, the outgoing conditions must cover every input combination exactly once. With two binary inputs, check 00, 01, 10 and 11. Conditions may combine cases, but must leave no gap and make no contradictory overlap.
Assign outputs in the chosen Moore or Mealy position. Add reset to establish the starting state, then test long runs, mismatches, back-to-back events and overlap cases. Without reset, storage may power up in an unintended state even if every normal arrow is correct.
Key Takeaways
- A state records the past information needed for future behavior.
- Retain the longest suffix that can still begin a sequence match.
- Overlapping detection reuses useful bits from a completed match.
- Every input combination needs exactly one transition from every state.
- Simultaneous events and reset behavior belong in the specification.
4.3 Merge states with the same future behavior
Two states are equivalent when every possible future input sequence produces the same output sequence from either one. Matching the current output is necessary but insufficient: later outputs must match too.
Begin with outputs and successor pairs
For each input, equivalent states must give the same output and move to the same state or to equivalent states. Row matching finds the simplest case: identical outputs and identical named next states in two table rows. Merge one into the other, rename it throughout the table, and check again.
Row matching can miss a pair whose successor names differ even though the successors are equivalent. An implication table checks those dependencies explicitly.
- Make one cell for each unordered pair of states.
- Cross out pairs whose outputs differ for any input.
- For each remaining pair, record the successor pairs that must be equivalent.
- Cross out a pair if any of its required pairs has been crossed out. Repeat until no new pair is removed.
- Merge the pairs that remain equivalent.
Reduce a five-state Mealy machine
Each entry below is next state/output.
| State | x = 0 | x = 1 |
|---|---|---|
| a | a/0 | b/0 |
| b | c/0 | b/0 |
| c | a/0 | d/1 |
| d | e/0 | d/0 |
| e | a/0 | d/1 |
First compare outputs. States c and e give output 1 for x = 1; a, b and d give 0. Cross out (a,c), (a,e), (b,c), (b,e), (c,d) and (d,e).
Now test the remaining pairs. Pair (a,b) requires (a,c) under x = 0, so remove it. Pair (a,d) requires (a,e), so remove it. Pair (b,d) requires (c,e) under x = 0 and itself under x = 1. Pair (c,e) has identical successors. Neither of these two pairs is contradicted, so both survive.
The classes are {a}, {b,d} and {c,e}. Rename d as b and e as c. The reduced table is a: a/0, b/0; b: c/0, b/0; c: a/0, b/1. It has the behavior of the three-state Mealy 101 detector.
Use partitions as an alternative
Group states by their output behavior: {a,b,d} and {c,e}. Within each group, compare the destination groups for each input. State a goes to the first group on x = 0, while b and d go to the second. Split a away. No further split is needed, giving {a}, {b,d}, {c,e}.
Judge the saving
Minimum-width binary storage uses three bits for both seven states and five states. Reducing five states to four crosses a power-of-two boundary and saves one flip-flop. In one-hot storage, every removed state saves one flip-flop. Logic size may also improve, but must be checked after encoding.
An unreachable state is different: no input sequence from reset enters it. It can be removed when describing operation from reset, whether or not it is equivalent to another state. Equivalence compares future behavior; reachability asks how the state can be entered.
Key Takeaways
- Equivalent states match every future output sequence.
- Implication tables propagate distinctions through successor pairs.
- Partition refinement repeatedly splits groups by successor behavior.
- Binary storage savings depend on crossing a power-of-two boundary.
- Unreachable-state removal and equivalent-state merging are separate operations.
4.4 Choose bit codes for the states
State assignment gives each state a unique storage code. It preserves the required behavior but changes the Boolean functions that implement it. A useful assignment balances storage cost, logic size and timing.
Compare the storage choices
| Encoding | How states are represented | Flip-flops for n states |
|---|---|---|
| Minimum-width binary | Distinct binary numbers | |
| Minimum-width Gray | Codes chosen for one-bit differences along a sequence | |
| One-hot | One dedicated bit is 1 per valid state | n |
Three or four states need two binary bits, five to eight need three, and nine need four. Gray ordering can reduce the number of bits changing along a chosen sequence, but a branching FSM cannot generally make every arrow a one-bit change. One-hot uses more storage and often simpler next-state decoding, which can be useful in FPGAs.
Compare actual equations
For the Moore 101 detector, assign S0 = 00, S1 = 01, S2 = 10 and S3 = 11. With present bits A and B:
Count variable occurrences as literals: five in the first equation, one in the second and two in the output, for eight total.
Now use the Gray-order assignment S0 = 00, S1 = 01, S2 = 11 and S3 = 10. The equations become
These contain 17 literals. The Gray order gives adjacent codes along the listed state sequence, yet produces more logic for this transition structure. Compare derived equations instead of choosing by the encoding's name.
Read one-hot equations from incoming arrows
Let S0 through S3 also name four one-hot bits. For each destination bit, OR the conditions on arrows entering that state:
The output is . Reset must set S0 to 1 and every other bit to 0. Clearing all four bits does not select any valid state.
Check unused codes
Three binary states on two bits leave one unused code. Four one-hot states on four bits leave unused codes. Treating them as don't cares can simplify the maps, but the resulting circuit still does something when such a code occurs. Evaluate that behavior after minimization.
For hand assignments, try adjacent codes for states sharing a next state under an input, for destinations of one state, and for states sharing outputs. These choices can group 1s in Karnaugh maps. Compare two or three candidates: fewer flip-flops can come with wider logic, while extra one-hot storage can shorten the logic path.
Key Takeaways
- Minimum-width binary or Gray storage needs bits.
- One-hot assigns one flip-flop to each state.
- State assignment changes logic cost without changing required behavior.
- One-hot next-state equations collect incoming transition conditions.
- Unused storage codes require an explicit behavior check.
4.5 Derive inputs and verify the finished circuit
A state table specifies desired transitions. To build it, choose flip-flop inputs that produce each transition, minimize their logic, and check the resulting circuit. Keep one variable order throughout; here state codes use AB and map rows use ABx.
Work backward with an excitation table
| Q → next Q | D | J | K | T |
|---|---|---|---|---|
| 0 → 0 | 0 | 0 | X | 0 |
| 0 → 1 | 1 | 1 | X | 1 |
| 1 → 0 | 0 | X | 1 | 1 |
| 1 → 1 | 1 | X | 0 | 0 |
X means either input value works for that transition. For 0 → 1, J must be 1, while K may be 0 (set) or 1 (toggle). D simply equals the desired next bit. T indicates whether that bit changes:
Do this separately for each state bit and each row. For ABx = 010 in the binary Moore 101 detector, next AB = 10. A changes 0 → 1, so J_A = 1 and K_A = X. B changes 1 → 0, so J_B = X and K_B = 1.
Derive and compare implementations
Use S0 = 00, S1 = 01, S2 = 10, S3 = 11. The next-state pairs for x = 0 then x = 1 are 00: 00, 01; 01: 10, 01; 10: 00, 11; 11: 10, 01. D_A is 1 in rows 010, 101 and 110, so map grouping gives
This needs two D flip-flops, three AND gates including output decoding, one OR gate and an inverter for x'. A complemented B output supplies B'.
The same table with JK storage minimizes to
With T storage it gives
The D equations are simplest here. A different machine with many hold or toggle transitions may favor JK or T. The characteristic rule predicts a response to given inputs; the excitation table selects inputs for an already chosen response.
Test what minimization leaves unspecified
A Mealy 101 detector uses S0 = 00, S1 = 01 and S2 = 10, leaving 11 unused. Taking that code as a don't care gives
From 11, x = 0 leads to 10 and x = 1 leads to 01. The circuit returns to valid state space in one edge, so it is self-correcting. Yet at 11 with x = 1, y is 1: recovery does not prevent a false output before recovery. If that is unacceptable, prescribe a safe next state and output for 11 before minimization. Reset establishes the intended start; it does not define behavior after a later disturbance. Unused states that only lead to one another cause lockout.
Close the design loop
The full route is specification, diagram, table, reduction, assignment, flip-flop choice, input and output equations, circuit, then verification. Compare equation-based traces against the diagram, including reset, partial matches, overlaps and unused codes. From 00, inputs 0, 1, 0, 1, 0, 1, 1, 0, 1 must produce Mealy detections in cycles 4, 6 and 9. Check timing as well as the Boolean transitions before accepting the hardware.
Key Takeaways
- Excitation tables map desired bit transitions to required inputs.
- D equals the next bit; T equals present XOR next.
- JK excitation don't cares can simplify its input logic.
- Derive output equations as well as flip-flop inputs.
- Self-correction does not guarantee safe outputs during recovery.
- Verify normal sequences, reset, unused codes and timing.
Synchronous Sequential Logic examples
1Follow a bit through storage
16 steps
- 1IntroductionGive the circuit a memory
A combinational circuit responds to its current inputs. A sequential circuit also stores a state, so an identical input can produce a different response after a different history. A push-on, push-off button illustrates this: each press is the same event, but the lamp alternates between on and off. We will first hold one bit with feedback, then control when that bit may change.
- 2ExplanationTwo stable values
Two inverters connected in a loop support two stable arrangements: Q = 0 with its complement 1, or Q = 1 with its complement 0. Each output feeds back the value needed to sustain the other. This bistable loop remembers a bit while power remains on. To choose which value it stores, add set and reset control inputs; two cross-coupled NOR gates form the active-high SR latch.
- 3ExampleSet, hold and reset
For a NOR SR latch, SR = 10 sets Q to 1, 01 resets Q to 0, and 00 holds its previous value. Starting with Q = 0, the sequence 10, 00, 01 gives 1, 1, 0. The middle input pair has no active command, so feedback preserves the set value. SR = 11 is invalid: both outputs become 0, and releasing both inputs together leaves the final state dependent on gate delays.
- 4ChallengeRead an active-low command
A NAND SR latch has active-low inputs S' and R'. It starts at Q = 0 and receives S'R' = 01, then 11. What final value does it hold?
---reveal---
It holds Q = 1. The first pair asserts set because S' is low while R' is inactive. The second pair makes both commands inactive and holds that 1. The NOR hold pair 00 would be invalid for this NAND latch.
- 5ExplanationUse one data input
A D latch forms its SR commands from data D and enable C:
While C = 0, both commands are inactive. While C = 1, D selects set or reset, excluding simultaneous assertion in the logic model. The latch is transparent throughout the enabled level: Q follows D. When the enable goes low, Q holds the last accepted value.
- 6ExampleDraw the open interval
Take an ideal active-high D latch, initially Q = 0. Enable is high from 5 to 12 ns. D rises at 7 ns and falls at 10 ns. Q stays low until 7 ns, follows D high from 7 to 10 ns, and returns low at 10 ns. Closing at 12 ns stores 0. The rising enable edge is not the only update opportunity: the input changes inside the open interval matter too.
- 7ChallengeCapture the value at closing
An ideal active-high D latch is open from 3 to 8 ns. D rises at 6 ns and falls at 11 ns. It starts with Q = 0. What is Q at 9 ns, and why?
---reveal---
Q = 1. The rise at 6 ns passes through while the latch is open, and closing at 8 ns stores that 1. The later D fall at 11 ns occurs while it is closed, so it cannot change Q until the latch is enabled again.
- 8ExplanationMake the update an edge
A positive-edge D flip-flop samples D once at each rising clock edge and holds the sample between edges. Its clock symbol has a triangle; a bubble before the triangle would select falling edges. If rising edges occur at 10, 20 and 30 ns, changes between those instants do not directly update Q. Real output changes follow a clock-to-Q delay; ideal traces leave that delay out.
- 9ConnectionClose the master before passing data
Two opposite-phase latches can form a positive-edge D flip-flop. While the clock is low, the master follows D and the slave holds Q. At the rising edge, the master closes on the sample and the slave opens onto that stored value. During the high phase the closed master blocks later D changes. The pair prevents a transparent path from external D all the way to Q.
- 10ExplanationChoose load or hold
A data-path multiplexer gives a D flip-flop an enable:
At an edge, EN = 1 loads D; EN = 0 selects feedback Q and holds the bit. Keep the shared clock running. An ordinary AND gate in its path can create an unintended clock edge when enable rises while the clock is already high. A synchronous reset also acts at an edge; asynchronous clear acts without waiting.
- 11ChallengeA pulse between samples
A positive-edge D flip-flop starts at 0. Rising edges occur at 6 and 16 ns; D is high only from 9 to 12 ns. What value is stored after 16 ns?
---reveal---
It stores 0. D is low at both sampling edges, so the intervening pulse is never captured. An active-high latch open across 9–12 ns would pass the pulse; an edge-triggered device does not follow D throughout the clock-high interval.
- 12ExplanationRead JK as four commands
JK inputs select hold, set, reset or toggle at the active edge: 00 holds, 10 sets, 01 resets and 11 complements the bit. The characteristic equation is
With Q = 0, the next value is J. With Q = 1, it is K'. Thus J = K = 1 turns either stored value into its opposite. It is a valid JK command, even though simultaneous set and reset is invalid on an SR latch.
- 13ConnectionBuild T behavior from D
A T flip-flop holds for T = 0 and toggles for T = 1. Its rule is
Feed that XOR expression into a D flip-flop to obtain the same behavior. T can also drive both J and K of a JK device. Holding T high produces one Q transition per active clock edge, so two clock periods complete one output cycle. The output frequency is half the input clock frequency.
- 14ChallengeFollow two toggles and a hold
A T flip-flop starts with Q = 1. Its T inputs at four active edges are 1, 0, 1, 1. What values follow the edges?
---reveal---
The stored values are 0, 0, 1, 0. The first 1 toggles down, the 0 holds, and the final two 1s toggle up then down. Writing the T sequence itself as Q would mistake a change command for a data value.
- 15ChallengeConnect enable with toggle
A D flip-flop uses . Starting at Q = 0, EN is 1, 0, 1 at three active edges. What happens?
---reveal---
The bit becomes 1, holds 1, then becomes 0. An asserted enable selects the complement of the stored bit, while an inactive enable selects its unchanged value. This is T behavior implemented with D storage and a load-or-hold multiplexer.
- 16RecapMatch the command to the storage
To trace storage, first identify its active level or edge. Use feedback to carry the old value through a hold interval. For D, load the data; for JK, apply its four commands; for T, compare hold with toggle. Keep asynchronous preset and clear separate from clocked sampling. The same logic expressions can implement different named behaviors around D storage.
2Check a complete timing path
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionProtect both sides of sampling
- 2ExplanationBuild a cycle budget
- 3ChallengeFind the period and high interval
- 4ExplanationName the four path delays
- 5ExampleAdd the setup intervals
- 6ExampleCheck the same-edge hold window
- 7ChallengeSelect a repair that passes both checks
- 8ExplanationCover the adverse skew direction
- 9ExampleRecheck after clock uncertainty
- 10ExplanationGive an uncertain bit time to settle
- 11Key InsightKeep the interstage path short
- 12ChallengePredict a reliability change
- 13ChallengeCheck the fastest clock claim
- 14RecapSeparate delay from uncertainty
3Turn equations into a trace
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionEvaluate the old state first
- 2ExplanationRead a D circuit
- 3ExampleFill the four present-state cases
- 4ChallengeKeep the output on the correct side
- 5ExplanationConvert the table to a route
- 6ExampleRead behavior across several edges
- 7ChallengeCarry the state into the next row
- 8ExampleApply JK commands to old bits
- 9Key InsightDo not copy a T command
- 10ChallengeAnalyze a new T row
- 11ChallengeTrace beyond one command
- 12RecapUse three views of one behavior
4Design and verify a pattern detector
20 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionBegin with the memory the task needs
- 2ExplanationChoose the output dependency
- 3Key InsightKeep the cycle convention fixed
- 4ChallengePredict an input-only change
- 5ExplanationName the useful prefixes
- 6ChallengeTest a mismatch that preserves history
- 7TipMake every input case unique
- 8ExplanationTest future behavior, not state names
- 9ExampleReduce the expanded detector
- 10ChallengeUse a delayed distinction
- 11ExplanationAssign codes and count storage
- 12ExampleCompare the equations after assignment
- 13ChallengeBuild a one-hot input equation
- 14ExplanationTurn desired changes into inputs
- 15ExampleFill one excitation row
- 16ExampleRecover without making a false promise
- 17ChallengeChoose the correct excitation
- 18ChallengeTest an unused code from the equations
- 19TipVerify beyond a successful match
- 20RecapKeep behavior and implementation aligned
Synchronous Sequential Logic practice questions
Set 1: Storage, clocks and state transitions10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Timing margins and complete circuit models10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: State history, reduction and output timing10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Repair timing and distinguish machine behavior10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Verify unfamiliar sequential designs10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Active-low input
Asynchronous clear
Asynchronous input
B
Binary encoding
Bistable element
C
Characteristic equation
Characteristic table
Circuit analysis
Clock
Clock domain
Clock frequency
Clock period
Clock skew
Clock-to-Q contamination delay
Clock-to-Q propagation delay
Combinational circuit
Contamination delay
Critical path
D
D flip-flop
D latch
Don’t care
Duty cycle
E
Edge triggering
Enable
Equivalent states
Excitation table
F
Feedback
Finite state machine
Flip-flop input equation
G
Gray encoding
H
Hold time
I
Implication table
J
JK flip-flop
K
Karnaugh-map minimization
L
Level sensitivity
Lockout
M
Master-slave construction
Mealy machine
Mean time between failures
Metastability
Moore machine
N
Next-state equation
Next-state logic
Non-overlapping detection
O
One-hot encoding
Opaque phase
Output decoding
Output equation
Overlapping detection
P
Partial match
Partition refinement
Positive edge
Present-state evaluation
Preset
R
Reset state
Resolution time
Row matching
S
Sampling aperture
Self-correcting FSM
Sequencing overhead
Sequential circuit
Setup time
SR latch
State
State assignment
State diagram
State reduction
State table
State variable
Switch debouncing
Synchronizer
Synchronous circuit
Synchronous reset
T
T flip-flop
Toggle
Trace
Transition
Transparency
U
Unreachable state
Unused code
V
Verification
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.