Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Clocking-block output timing

Hardware interview practice

Clocking-block output timing

HardVerification UtilitiesSystemVerilog

A DUT always_ff samples raw req on each posedge. The driver uses a #0 clocking-block output and holds req at 1 through the following posedge. At which posedge can the DUT first sample 1?

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 →
Starting point

Question code

clocking cb @(posedge clk);
  output #0 req;
endclocking

// Driver: req remains 1 through the following posedge.
@(vif.cb);
vif.cb.req <= 1;
Choose one

Answer choices

  1. A. The same posedge that awakened @(vif.cb)
  2. B. The next posedge, because the same-edge DUT sampling precedes the clocking output drive
  3. C. Half a cycle later, regardless of the next edge
  4. D. Never; clocking-block outputs cannot drive interface signals
asic.fyi · Learn silicon end to end.info@asic.fyi