Hi,
I have a matrix of numbers between (-1,1) generated in MATLAB as DBL via the script node. I would like to store these numbers (converted to FXP-16,2) in DRAM to be used for other purposes. It looks like unlike FIFOs, the DRAM (memory) primitive only accepts integer data types.
- How do I faithfully convert FXP (x,y) to I16 and back, preferably optimized for use in a SCTL on the FPGA? Ideally, I would like to convert say x.yyy to xyyy and back without using divide.
- When data is written to DRAM, is the entire block (array) written at once or is it written element by element?
- I am following the example here. I think I understand how it works, but I am stuck at step 1. https://forums.ni.com/t5/Example-Code/NI-FlexRIO-Basic-DRAM-Example/ta-p/3500004
Hardware: 7966R FlexRIO + 5781 Module, LV2019-f2 update.
I have successfully stored the Matrix as a front panel array, but I would like to leverage and learn how to use onboard DRAM. My ultimate goal is to learn to use the DRAM as a buffer.
I realize it is strange to be asking questions without a minimum working example, but I am well and truly stuck here.
Thank you!