Logic circuits
Which correctly describes the setup time of a flip-flop?
- AThe minimum time data must be held after the clock edge
- BThe minimum time the data input must be stable before the clock edge
- CThe time from power-on until it starts operating
Show answer and explanation
Answer: B. The minimum time the data input must be stable before the clock edge
For a flip-flop to capture correctly, data must be stable for a certain time before the clock edge—the setup time. A violation occurs if the clock-to-output delay plus the data-path delay exceeds the clock period minus the setup time, and it can be fixed by slowing the clock. The time data must remain stable after the edge is the hold time. Violating either can capture wrong values or cause metastability.