Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNeed help creating a simple 32bit counter
I'm trying to learn VHDL so I thought I'd try converting the "my_first_fpga" example from verilog to VHDL (how complicated can adding one to a number be?), three hours later, lots of googling and sea...
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 ...