Forum Discussion
Altera_Forum
Honored Contributor
8 years agoProblem with simulation and implementation of code in DE0 Nano Cyclone IV kit
Hi everyone, I have a kit DE0 Nano Cyclone IV EP4CE22F17C6, it has among other things 8 leds and I am programming in Quartus 12 and for simulate I am using ModelSim Starter 10.0d. My program generate...
Altera_Forum
Honored Contributor
8 years agoThis code is written as if it was software, and rather hard to follow.
The SIN_INIT function should not be called in the process at all - I dont know how it is working in the first code - I get the feeling that Quartus does not support initial values on variables, and hence sets primeravez=false, and removes all of the code inside the primeravez=true section, hence causing no issues. I bet it never actually initialises the table. I highly suggest you read up on digital logic design. When you have done this - then DRAW the circuit you think you need. Then when you have this drawn circuit, the read up on how to follow templates for the circuit elements you have. One hint - you almost NEVER need variables - I HIGHLY recommend you make EVERYTHING a signal.