Quiz: Flip-Flops and Timing
Test your understanding of flip-flop types, timing parameters, and synchronous design principles.
1. What distinguishes a flip-flop from a latch?
- Flip-flops use more transistors
- Flip-flops are edge-triggered rather than level-sensitive
- Flip-flops can only store 1, not 0
- Flip-flops require higher voltage
Show Answer
The correct answer is B. Flip-flops are edge-triggered—they sample input and update output only at clock transitions (rising or falling edge). Latches are level-sensitive—they pass input to output during the entire enable period. Edge triggering provides precise timing control.
Concept Tested: Edge Triggered
2. For a D flip-flop, what value does Q take after a clock edge?
- Always 0
- Always 1
- The value of D at the clock edge
- The complement of D
Show Answer
The correct answer is C. A D flip-flop captures the value present at its D input at the active clock edge and holds it until the next active edge. "D" stands for "data"—whatever data is at D appears at Q after the clock.
Concept Tested: D Flip-Flop
3. What is setup time?
- The time to power on the chip
- The time data must be stable before the clock edge
- The time from clock edge to valid output
- The total time to configure the circuit
Show Answer
The correct answer is B. Setup time (tsu) is the minimum time the data input must be stable BEFORE the active clock edge. Violating setup time can result in incorrect data capture or metastability.
Concept Tested: Setup Time
4. What is hold time?
- The time the circuit holds its state without power
- The time data must remain stable after the clock edge
- The maximum operating time
- The time between clock edges
Show Answer
The correct answer is B. Hold time (th) is the minimum time the data input must remain stable AFTER the active clock edge. If data changes too quickly after the edge, the flip-flop may capture incorrect or metastable values.
Concept Tested: Hold Time
5. What is metastability?
- A stable state between 0 and 1
- An unstable condition when setup/hold times are violated
- A type of flip-flop design
- Normal operating behavior
Show Answer
The correct answer is B. Metastability occurs when a flip-flop captures an input that is changing during the setup/hold window. The flip-flop may enter an intermediate state between 0 and 1, taking unpredictable time to resolve. It can cause system failures.
Concept Tested: Metastability
6. What is the JK flip-flop's behavior when J=1 and K=1?
- Q becomes 0
- Q becomes 1
- Q toggles (inverts)
- Invalid state
Show Answer
The correct answer is C. When both J and K are 1, the JK flip-flop toggles its output on each clock edge. This is the "toggle mode" that distinguishes JK from other flip-flops. Unlike the SR latch, J=K=1 is a valid, useful state.
Concept Tested: JK Toggle Mode
7. What is clock-to-Q delay?
- The delay from input D to output Q
- The delay from active clock edge to stable output
- The time between two clock cycles
- The setup time plus hold time
Show Answer
The correct answer is B. Clock-to-Q delay (tcq) is the time from the active clock edge until the flip-flop output becomes stable and valid. It's a key timing parameter that affects the maximum operating frequency of synchronous circuits.
Concept Tested: Clock-to-Q Delay
8. What is the purpose of an asynchronous reset on a flip-flop?
- To clock the flip-flop faster
- To immediately force the output to a known state regardless of clock
- To increase power consumption
- To disable the clock input
Show Answer
The correct answer is B. An asynchronous reset forces the flip-flop output to 0 (or 1 for preset) immediately when asserted, without waiting for a clock edge. It provides instant initialization but requires careful timing analysis.
Concept Tested: Asynchronous Reset
9. What is a synchronous reset?
- A reset that takes effect immediately
- A reset that takes effect only on the active clock edge
- A reset shared by multiple flip-flops
- A reset that varies with temperature
Show Answer
The correct answer is B. A synchronous reset only takes effect at the active clock edge, just like a normal data input. The reset signal is gated with the clock. This simplifies timing analysis but requires the clock to be running.
Concept Tested: Synchronous Reset
10. What is a T flip-flop, and how is it commonly used?
- A flip-flop with temperature sensing, used in thermal protection
- A flip-flop that toggles when T=1, used in counters
- A flip-flop with timing output, used in clocks
- A flip-flop with test mode, used in debugging
Show Answer
The correct answer is B. A T (Toggle) flip-flop inverts its output when T=1 and holds when T=0. It's commonly used in counter design because binary counting involves toggling bits at different rates. A JK flip-flop with J=K becomes a T flip-flop.
Concept Tested: T Flip-Flop