Logic circuits

Which correctly describes the setup time of a flip-flop?

  1. AThe minimum time data must be held after the clock edge
  2. BThe minimum time the data input must be stable before the clock edge
  3. 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.

Setup time and hold time Clock edge Clock Data Old data Next data Setup time tsu Hold time th Data must not change in this window Setup violation: data arrives too late Hold violation: data changes too early
Setup time and hold time · Try the interactive version

Related calculators

Books on Logic circuits Ad

Learn hands-on: parts and kits

Building real circuits is a good way to check what you learned in the questions.

As an Amazon Associate I earn from qualifying purchases.

More Logic circuits questions

  1. How many states can a 4-bit binary counter represent?
  2. Which is a characteristic of Gray code?
  3. Which correctly describes the operation of a D latch?
  4. What is the state called when a flip-flop receiving an asynchronous signal violates setup or hold time and its output is temporarily neither 0 nor 1?
  5. Which type of sequential circuit (state machine) has outputs determined only by the current state?

Comparisons in this topic