06-13-2016 01:18 AM
Hello,
I hope i can formulate my question in the right way. I want to test some FPGA routine and don't always want to compilate the hole streaming project (e.g. the build with the register bus etc.). Is it possible to only build a simple FPGA bitfile (simple while loop, some fifos, my code) and test it on the USRP RIO device or do I have to use the basic FPGA Streaming Xcvr build as basis? This would really shorten the compilation time to test new code.
I hope my question is understandable.
Regards
Etuel
Solved! Go to Solution.
06-13-2016 10:03 AM
Yes, you can start from a blank FPGA VI and develop FPGA code similar to other LabVIEW FPGA targets. There are a few things to point out:
Good luck!
06-14-2016 12:44 AM
Hello brooksprumo,
thank you for your answer. Just to clarify the points you made: Can I use then this uploaded structure of my screenshots to test some FPGA code? The screenshot FPGA_Loop.png shows that I just want to send data to the FPGA via FIFO and get the results back. In PC.png I build together the FPGA chain to upload the data and get the results back. Can this be done? I just don't want to damage the device in some way.
Thank you again.
Regards
Etuel
06-14-2016 08:58 AM
Hi Etuel,
That should definitely work; you won't damage the device, that is the point of software-configurable FPGAs! When actually connecting to I/O, I would recommend integrating with the Sample Streaming Project since it takes care of a lot of the hardware configuration, clocking, etc.
As a recommendation - are you using a host testbench before your FPGA test bench? It is always best practice to create a testbench on the host for FPGA algorithmic code. You can use the Run FPGA Simulation node to bring in your CDL code to a host testbench. This was you can test code before running a compile!
Cheers,
06-15-2016 02:34 AM
Hello Rahul,
thank you for your answer. I am using a FPGA testbench, but at some point I wanted to try the algorithms on the FPGA and compiling the Sample Streaming Project together with my additions takes about 2 hours. But thanks nevertheless for the hint!
Regards,
Etuel