Hardware interview practice
Procedural delays
Assuming the time unit is 1 ns, at what simulation times are x assigned 1 and 2?
Starting point
Question code
int x;
initial begin
x = 0;
#5 x = 1;
#3 x = 2;
endChoose one
Answer choices
- A. 5 ns and 3 ns
- B. 5 ns and 8 ns
- C. 0 ns and 8 ns
- D. Both at 8 ns
