From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fpga block memery node limit refer to values or bits

In the memory properties window of a memory node on a 9111 FPGA of an rt
target, with the implementation set to 'block memory' does the 'actual number
of elements' refer to values or bits?

Details:

Per the data sheet, the limit for a c-RIO 9111 for embedded block RAM is 1,152
kbits.

I have for example a value of 1024 in the 'actual number of elements' field.

A c-series module 9025 is plugged into the chassis; the output data type of an
I/O node for this module is of datatype FXP (per help 64 bits are used per FXP
value regardless of how it is configured).

If 'elements' refers to values, then the limit would be 1024; if the 'elements'
refers to bits, then the limit would be 1024/64 = 16;

Ultimately I want to find out how many FXP values can be stored in the block
ram (1,152 kbits), i.e. if the limit is (1,153,000/64)=18,000 values.

0 Kudos
Message 1 of 3
(2,390 Views)


If 'elements' refers to values, then the limit would be 1024; if the 'elements'
refers to bits, then the limit would be 1024/64 = 16;


Its the former. In the attached example, notice that you get a waveform comprised of 1024 points from the block memory storing 1024 elements.

 

 

0 Kudos
Message 2 of 3
(2,370 Views)

The 64-bit storage applies on the host, but on the FPGA FXP types are generally stored with the exact number of bits specified by the word length. The exact packing into BRAM is implementation and target-specific, but will be reduced to as near the actual length as possible.

0 Kudos
Message 3 of 3
(2,355 Views)