Hardware interview practice
Bounded mailboxes
What happens at the second put if no consumer has yet called get?
Starting point
Question code
mailbox #(int) m = new(1);
initial begin
m.put(11);
m.put(22);
$display("both queued");
endChoose one
Answer choices
- A. The oldest item is silently discarded
- B. The mailbox expands automatically
- C. The second put blocks until space becomes available
- D. put returns 0 immediately
