04-15-2011 08:09 AM
Hello All,
My hardware is cRIO-9022. I have developed FPGA application where I compare one calculation value (fixed point) to reference value (U32). My problem is that it seems that there is not enough memory to transfer these reference arrays (U32) from RT to FPGA.
How I'm able to move these values to FPGA application? Inside FPGA application I must read these values from array. These values are changed quite rarely (mostly only when system is started).
I already use 3 FIFOs in my application.
Thanks a lot,
Jim
Solved! Go to Solution.
04-19-2011 05:44 PM
Hi Jim are these values Constant, when managing large arrays to save space you can use the memory blocks in the FPGA. If the values for your table are constant you can initialize the memory with them. In case they have to vary you can send them one time to the code (you can use handshaking, and save them to the memory block)
After the values are in the memory accessing the information from here is almost the same as doing it from an Array
In the FPGA part something like this inside a loop. Here you are waiting for the data to be ready when its ready you write it to the table, and the unset the flag.
On the Host part you will have something like this:
In here its very important that the Ready write flag is written after the data (order in the node).
Im attaching a small example with this
Best Regards
04-20-2011 12:12 AM
Thanks a lot, this structure solved my problem
-Jim