How can I debug/test FPGA code?
I have done a version of http://www.ni.com/white-paper/9117/en/ but I am getting nothing at the output (measuring with an oscilloscope).
I have simulated the main state machine and the sub vi SPI state machine (with Global definitions) on a normal vi to study it. But when I am flashing it in the FPGA (a FPGA version one) I am getting nothing at the output.
How to debug the FPGA code? I’ve created some indicator to the states machine but the main FPGA vi seen to work (change states) but nothing happened to SPI vi or the global definitions, as they are in FPGA they will not display the real values?
When I run the main FPGA vi the sub SPI vi and Global definition also shown they are engage running. Would they display the real values? Because the states in SPI sub vi does change.
The way I am testing it I select the command configure and then I run it (start buttom) and when It get back to idle I select Write/Read command, follow the condition to get back to idle (nothing at the output or in the global definition vi)
I have attached the code I am trying.