Race Conditions
The order of execution isn't always guaranteed within Verilog. This can best be illustrated by a classic example. Consider the code snippet below:
initial a = 0; initial b = a; initial begin #1; $display("Value a=%b Value of b=%b",a,b); endWhat will be printed out for the values of a and b? Depending on the order of execution of the initial blocks, it could be zero and zero, or alternately zero and some other arbitrary uninitialized value. The $display statement will always execute after both assignment blocks have completed, due to the #1 delay.
Read more about this topic: Verilog
Famous quotes containing the words race and/or conditions:
“Ah, little road, brown as my race is brown,
Your trodden beauty like our trodden pride,
Dust of the dust, they must not bruise you down.
Rise to one brimming golden, spilling cry!”
—Helene Johnson (b. 1907)
“No great idea in its beginning can ever be within the law. How can it be within the law? The law is stationary. The law is fixed. The law is a chariot wheel which binds us all regardless of conditions or place or time.”
—Emma Goldman (18691940)