Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Xc* and Yc* could not be displayed by the simulator --- Quote End --- Yes, because they are variables. You can use signals to make them visible. My previous comment about d1 to d4 is still valid, I fear. --- Quote Start --- Perhaps more important, it's impossible to guess how the code is synthesized from the shown snippets. The various variables used in the design, including d1 to d4 aren't real design objects unless they convert to registers or LE outputs. --- Quote End --- To ask explicitely: how do you load the values for d1 to d4? --- Quote Start --- I changed my d# variables from type natural to (unsigned) integer. They represent distances, so cannot be negative. --- Quote End --- May be, but you possibly don't understand the side-effects of implicite type conversion during assignment. I think, this previous suggestion is quite reasonable. --- Quote Start --- The safest way around this may be to keep everything in the same type --- Quote End ---