Forum Discussion
Altera_Forum
Honored Contributor
11 years agoUndefined output
Hi I have asked to write compare machine which compare 2 numbers with 4 bits. I made it by ussing XOR. My outputs dont react to the change in the inputs, they undefined. The inputs works wel...
Altera_Forum
Honored Contributor
11 years agoDont post images, post the actual code.
The problem probably occurs because you have a local variable i, and a while loop. The variable is probably gets to -1 on the first iteration and then the code is never executed again. But the main problem with the code is that while loops are not synthesisable. You will need to change the code to remove the loops.