Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ1046
Page ↗
Q1046DVASIC interview problem

Bounded mailboxes

TechniquesSystemVerilogSynchronization details
DifficultyEasy
TopicVerification Utilities
LanguageSystemVerilog
Format4 choices
01

Problem

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

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

Answer choices (4)