Forum Discussion
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.