Sequential Circuits (Latches, Flip-Flops, Registers)
Context: FIT1047_MOC · circuits that REMEMBER — output depends on input history via feedback · this is how memory and CPU registers exist · registers star in Fetch-Decode-Execute and RTL (Control)
Quick Revision
- 🎯 Objective: feedback loop ➔ 1-bit memory (SR latch) ➔ clocked storage (D flip-flop) ➔ flip-flops = a register ➔ registers + select lines = register file.
- ⚡ Key Constraint: SR latch input is forbidden; combinational circuits compute, sequential circuits remember — the exam discriminator.
📝 Core
1. From Feedback to the SR Latch
- Step 1 remember forever ➔ feed output back into input: once 1, always 1.
- Step 2/3 set–reset ➔ SR latch: sets , resets , holds the previous ; forbidden (both feedback paths fight).
2. D Flip-Flop (the clean 1-bit memory)
- Inputs ➔ = data to store + a control signal (write enable / clock): “read or write?“.
- Output ➔ the stored bit; eliminates the forbidden state by deriving from a single .
3. Registers (the CPU’s own memory)
- Register ➔ D flip-flops storing one -bit word — the fastest memory, inside the CPU.
- MARIE’s special-purpose set ➔ PC (address of next instruction) · IR (current instruction) · MAR (memory address to access) · MBR (value read/written) · general-purpose: AC accumulator.
- Register file ➔ collection of registers + control lines selecting which register reads/writes; one word in, one word out.
⚖️ Core Decision Matrix — SR latch behaviour
| Meaning | |||
|---|---|---|---|
| hold (memory!) | |||
| set | |||
| reset | |||
| — | forbidden |
⚠️ Common Mistakes
- 💡 Combinational vs sequential ➔ “output = function of inputs” vs “output depends on input SEQUENCE (state)”; adders can’t remember, latches can.
- 💡 The hold row is the point ➔ preserving IS the memory; students often describe set/reset and forget hold.
🧠 Active Recall
Why can't a combinational circuit implement memory, and what circuit trick fixes that?
Answer
- Short answer: Combinational outputs are pure functions of current inputs — no state; feeding an output BACK into an input creates state.
- Why: Feedback loop ➔ the SR latch’s cross-coupled structure holds stable under , storing one bit indefinitely.
Name MARIE's five key registers and their one-line jobs.
Answer
- Short answer: PC → next instruction’s address; IR → current instruction; MAR → memory address for load/store; MBR → data buffer to/from memory; AC → arithmetic accumulator.
- Why: RTL preview ➔ every fetch-decode-execute step is a transfer between exactly these registers.