Verilog Blocking procedural assignments

A blocking procedural assignment statement shall be executed before the execution of the statements that follow it in a sequential block (<add link>). A blocking procedural assignment statement shall not prevent the execution of statements that follow it in a parallel block(<add link>).
The = assignment operator used by blocking procedural assignments is also used by procedural continuous assignments and continuous assignments.

For example:
The following examples show blocking procedural assignments:

rega = 0;
rega[3] = 1; // a bit-select
rega[3:5] = 7; // a part-select
mema[address] = 8'hff; // assignment to a mem element
{carry, acc} = rega + regb; // a concatenation

<< Previous | Next >>

Comments are closed.