Hardware interview practice
Active-region races
What can the display legally print under standard scheduling semantics?
Starting point
Question code
int x = 0;
initial #1 x = 1;
initial #1 x = 2;
initial begin
#1; #0;
$display("%0d", x);
endChoose one
Answer choices
- A. Always 1
- B. Always 2
- C. Either 1 or 2 nondeterministically
- D. Always 0
