Forum Discussion
Altera_Forum
Honored Contributor
9 years agoQuestion Regarding to the MAX V eval board.
I am new user try to run my simple test on Altera Max V eval kit. I wrote a simple code want to verify a simple function: http://www.alteraforum.com/forum/attachment.php?attachmentid=12665&stc=1 ...
Altera_Forum
Honored Contributor
9 years agocounter_out <=# 1 ~(counter_out + 1);This is not doing what you want it too and is just resulting in 'counter_out' holding a static value (both in and out of reset). I might suggest that you've not simulated this. Doing so would have quickly pointed out your fault. Firstly, remove the "#1" from your code. This means nothing to your MAX V device or any logic synthesizer. Secondly, change the above statement to a simple counter_out <= counter_out + 1; Then, outside of that always block, deal with the inversion that the LEDs on your hardware require. assign led = ~counter_out; Finally, swap 'led' for 'counter_out' in your module's port list. Cheers, Alex