Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ635
Page ↗
Q635DVASIC interview problem

Mailboxes

TechniquesSystemVerilogCommunication primitives
DifficultyEasy
TopicVerification Utilities
LanguageSystemVerilog
Format4 choices
01

Problem

What is printed?

Starting declarationSystemVerilog
mailbox #(int) m = new;
int v;
initial begin
  m.put(42);
  m.get(v);
  $display("%0d", v);
end
02

Answer choices (4)