Forum Discussion
MHamz1
New Contributor
7 years agoHow can i turn off the optimization completely
How can i turn off the optimization completely, I suspect that optimization is doing something with the output. I am using Quartus Prime Lite as software and MAX V CPLD as the device
sstrell
Super Contributor
7 years agoIf you are trying to build a state machine with this code, this is not the way to do it. confstate should be set as an enumerated data type with specific states. You should also have separate processes for the next state logic (a clocked process) and what the outputs should be in each state (logic process). I don't see why testled is causing a difference in behavior because you don't show how testled is defined.
Again, in most cases, optimization settings do not affect the functionality of a design. It's better to focus on debugging the actual code before thinking an optimization setting is at fault.
#iwork4intel