Made with ScholarlyTurn your own files into documents like this
Shared by Shravani Aniket Joshi
Sequential logic differs from combinational logic because its output depends on both the present input and the previous output. Feedback creates memory, allowing a circuit to remain in a state until an input, enable, or clock event changes it. The key procedure for every problem is: identify the current state, determine whether the storage element is enabled or triggered, and then apply the correct input rule; if it is not enabled, the output holds (p. 1).
A bistable element has two stable states, represented by complementary outputs: one state has Q=0, and the other has Q=1. Cross-coupled inverters or gates feed each output back into the other input, reinforcing one of two consistent conditions and storing one bit. A latch is level-sensitive and can respond while its relevant input condition is active; a flip-flop is controlled by input lines and usually a clocking condition. Synchronous circuits change state under clock control, while asynchronous circuits can respond immediately to inputs without a clock (pp. 1–2).
For an active-high SR latch, S means set and drives Q to 1; R means reset and drives Q to 0. The four input cases are:
The forbidden case asserts set and reset simultaneously and can destroy the intended complementary relationship between Q and Q; it is not an ordinary stored state (p. 2).
The NAND implementation uses active-low inputs, written with bars. In that form, 0 asserts an input: S=0,R=1 sets; S=1,R=0 resets; both 1s hold; and both 0s are forbidden. Read bubbles or bars first, determine the asserted level, and only then apply the set/reset rule. The active-high NOR form and active-low NAND form implement the same storage idea with reversed polarity (p. 2).
A gated SR latch adds an enable/control input C. When C=0, the storage core is isolated from S and R, so it holds regardless of their values. When C=1, it follows the active-high SR rules: S=0,R=0 holds, S=0,R=1 resets, S=1,R=0 sets, and S=R=1 remains forbidden (p. 3). For waveform problems, check C first; only read S and R if the latch is enabled.
The D latch removes the SR forbidden input by deriving set and reset from one data input. When enabled, D=0 resets and D=1 sets; when disabled, the output holds. Because D and its complement are mutually exclusive, S and R cannot be asserted together. The D latch is level-sensitive: it can follow changes in D during the enabled level, but changes in D while C=0 do not change Q (pp. 3–4).
The JK flip-flop retains SR-like behavior without a forbidden state. Under its active clock/control condition: J=0,K=0 holds; J=0,K=1 resets; J=1,K=0 sets; and J=K=1 toggles. Toggle means that the next state is the complement of the current state. Thus, unlike SR’s simultaneous assertion, J=K=1 is deliberately useful and depends on the present Q (pp. 4–5).
If Q=0 and the active inputs are J=K=1, the next state is Q+=1. At the next active event with the same inputs, it toggles back to 0. The source notes that this allows a JK element used as a toggle to divide a repeating clock-like sequence by two (p. 5).
Mechanical switch bounce produces rapid unwanted 0/1 transitions, so a circuit sampling during the movement may interpret one physical press as multiple events. In the source’s X-to-Y debouncer sequence:
Pull-down resistors establish defined input levels when the switch is not asserting a path. The latch does not make the mechanical switch move more cleanly; its memory ignores intermediate contact changes and presents one clean logical transition (pp. 5–6).
The source gives the frequency–period relationship as
f=T1,where f is frequency in hertz and T is period in seconds. A clock cycle is the time for a 1→0→1 sequence (p. 6).
For enabled JK behavior, the characteristic equation is
Q+=JQ+KQ,where Q+ is the next state. The source explains that the first term produces set behavior when J is asserted, while the second preserves Q when K is not asserted (p. 5).
In a timing diagram, find the rising clock edge first. Mark the interval immediately before it as setup and the interval immediately after it as hold. After the edge, wait through the clock-to-Q propagation interval before reading the new valid Q value. If data changes during setup or hold, the output may be uncertain; therefore, a correct truth table alone is not sufficient when the input changes too close to the active edge (pp. 6–7). The labels LH and HL denote low-to-high and high-to-low transitions, with transition-specific delays written as tpLH(CQ) and tpHL(CQ) (p. 6).
Be able to:
Make from this