Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Bounded mailboxes

Hardware interview practice

Bounded mailboxes

EasyVerification UtilitiesSystemVerilog

What happens at the second put if no consumer has yet called get?

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

mailbox #(int) m = new(1);
initial begin
  m.put(11);
  m.put(22);
  $display("both queued");
end
Choose one

Answer choices

  1. A. The oldest item is silently discarded
  2. B. The mailbox expands automatically
  3. C. The second put blocks until space becomes available
  4. D. put returns 0 immediately
Continue practicing

Related questions

Verification UtilitiesEvent persistence within a time slot→
asic.fyi · Learn silicon end to end.info@asic.fyi