Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Mailboxes

Hardware interview practice

Mailboxes

EasyVerification UtilitiesSystemVerilog

What is printed?

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;
int v;
initial begin
  m.put(42);
  m.get(v);
  $display("%0d", v);
end
Choose one

Answer choices

  1. A. 0
  2. B. x
  3. C. 42
  4. D. The process deadlocks
Continue practicing

Related questions

Verification UtilitiesSemaphores→Verification UtilitiesEvents→
asic.fyi · Learn silicon end to end.info@asic.fyi