**Race Condition in Procedural Structures** Which procedural structure co…
**Race Condition in Procedural Structures** Which procedural structure contains a Verilog simulation race condition?
Correct answer
A.
Explanation
Option A has a race: both clocked blocks use blocking assignments, so whichever runs first changes a value that the other block may read. Option B samples both right-hand sides and schedules non-blocking updates, so the swap is deterministic. In C, d continuously follows q , so this fragment captures its current value; it does not show two competing clocked writes. In D, each right-hand side is sampled before its intra-assignment delay, so the delayed writes do not change the sampled values.