Altera_Forum
Honored Contributor
11 years agoDebugging NIOS2 + Verilog code
We are using a Stratix processor with NIOS2 (Altera University Program DE4 development board with a Stratix Ep4SGX230KF40C1 processor). We have been plagued with problems where small changes in code will suddenly make the code lock up or not work in some fairly unpredictable way. Sometimes the same code will only work half of the time (we have to re-download the .sof file and it will then work). We are using the NIOS2 terminal to download both .sof and .elf files, and thus we do not have many ways to debug or understand what is going on.
So our main question is: when code works erratically, what are the most likely explanations? Our next question is: how does one debug code on this level, when multiple components are talking to each other and the results are inconsistent? (The first question is probably less vague) TimeQuest tells us there are unconstrained paths, but otherwise gives us no warnings or errors. More details on our code: We are writing code to send data from the FPGA to the NIOS2 processor and then through high speed Ethernet.