u24c02
Advanced Member level 1
- Joined
- May 8, 2012
- Messages
- 404
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,298
- Activity points
- 4,101
Hi.
I'm trying to study about race condition.
So I have been looking the following code.
But I don't know whether race condition or not.
So would you please let me know why does this race condition?
module*race();*
wire*p;*
reg*q;*
assign*p*=*q;*
initial*begin*
q*=*1;*
#1*q*=*0;*
$display(p);*
end*
endmodule*
I'm trying to study about race condition.
So I have been looking the following code.
But I don't know whether race condition or not.
So would you please let me know why does this race condition?
module*race();*
wire*p;*
reg*q;*
assign*p*=*q;*
initial*begin*
q*=*1;*
#1*q*=*0;*
$display(p);*
end*
endmodule*