Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Clocked assignment for a register chain

Hardware interview practice

Clocked assignment for a register chain

EasyRTL DesignSystemVerilog

Two registers form a pipeline: q1 captures d and q2 captures the previous value of q1 on each rising edge. Which implementation gives the intended register-to-register behavior?

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Choose one

Answer choices

  1. A. Use blocking assignments to q1 and then q2 in one rising-edge process.
  2. B. Drive q1 with a continuous assignment and assign q2 in an always_comb block.
  3. C. Use nonblocking assignments to q1 and q2 in one always_ff block triggered by the rising clock edge.
  4. D. Assign q1 from two separate always_ff blocks and let the simulator resolve the latest value.
asic.fyi · Learn silicon end to end.info@asic.fyi