Forum Discussion
Altera_Forum
Honored Contributor
16 years agoin verilog you can use blocking and non blocking assignments, you can mix them but you need to decide which one you use inside an always block for this particular block
non blocking q <= counter; counter <= counter + 1; is the same as if you swap the lines counter <= counter + 1; q <= counter; both work the same way. but if you use blocking assignments then it does matter in which order you write your code. i personaly use non blocking assingments as ther are enough bugs around to catch ...