Hardware interview practice
Mailboxes
What is printed?
Starting point
Question code
mailbox #(int) m = new;
int v;
initial begin
m.put(42);
m.get(v);
$display("%0d", v);
endChoose one
Answer choices
- A. 0
- B. x
- C. 42
- D. The process deadlocks
Hardware interview practice
What is printed?
mailbox #(int) m = new;
int v;
initial begin
m.put(42);
m.get(v);
$display("%0d", v);
end