Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Delayed nonblocking assignments

Hardware interview practice

Delayed nonblocking assignments

HardSystemVerilogSystemVerilog

Which transition history for a is correct?

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

int a = 0;
initial begin
  #1 a <= #5 1;
  #2 a <= #2 2;
end
Choose one

Answer choices

  1. A. a becomes 2 at time 5 and then 1 at time 6
  2. B. a becomes 1 at time 6 and then 2 at time 10 because each intra-assignment delay blocks the process
  3. C. a becomes only 2 at time 5 because the later statement cancels the first
  4. D. a becomes 1 at time 8 and never becomes 2
Continue practicing

Related questions

SystemVerilogInactive, nonblocking assignment (NBA), and postponed regions→SystemVerilogNested disable fork→
asic.fyi · Learn silicon end to end.info@asic.fyi