Hi i am debuggin a simple program running on the Spartan3e starter kit :
int main() { int k = 3; int i = 2; int j = 4;
i = k; i = j+j+k; while(i < 15) { j--; i++; } return 0; }
The problem is that the value "k" after i step the first time is initialised to -1 and not 3 !! if i swap "int i = 2" with "int k = 3" then i = -1 and not 2 !! .. the rest of the code can be stepped thourg with no weird behaviour .. what can be the problem?