LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Overload Issue w/ DSPs

Hello,

I'm trying to compile a VI on the PXIe-7965R (FPGA). The VI is listed below.
I've tried altering the overall structure to be more efficient, resulting in the VI below.
It uses 2 DSPs and several high throughput blocks. The error I receive is that it uses too much memory to compile (397.3% of the Slice Registers and 248.7% of the Slice LUTs)
I'm not sure if there is an error with regards to the DSP implementation that is causing a large memory pileup.
I'd be happy to elaborate, if necessary.

Thanks,
Richie

0 Kudos
Message 1 of 9
(3,444 Views)

Hi Richie,

 

I estimated the resource usage with your code and got nearly identical results as you. From there, I started removing portions of the algorithm and have determined that the DSP48E node is what is causing the large memory usage. I am not very familiar with the Goertzel Algorithm, but one thing I would suggest is reducing the amount of bits you are using for the fixed-point calculations. If you're able to do so, the resource usage should decrease significantly. This is not a hard guideline, but typically a fixed-point number of size X will require X^2 resources (i.e. logic gates) or worse. If you're able to decrease the size of the number, you should be able to recover quite a few of those resources back.

 

Hope that helps!

 

Best Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 2 of 9
(3,396 Views)

Matthew,

There is a recursive nature to the Goertzel Algorithm. If the large memory usage stems from the number of bits I am using for the fixed point calculations, then I think that this would trace back to the DSP48E node since there is a fixed 48-bit width output. There is definitely flexibility with the bit width for the inputs to the DSP48E; but the loop would naturally fixate me back to 48 bits due to the type of the output. I suppose there is no way to alter this?

Many thanks,
Richard

0 Kudos
Message 3 of 9
(3,212 Views)

Hi Richard,

 

After some more thought, we find it strange that you are running out of memory with the PXIe-7965R. Is this the error that you are receiving as well?

 

compile_error.PNG

 

If that is the error you are receiving, that means that the system that is compiling the code has run out of memory. Are you compiling on a local machine or a remote machine? For the compile machine, what OS is it, is it 32- or 64-bit, and how much RAM does the machine have available?

 

Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 4 of 9
(3,169 Views)

Matthew,


The following image is the what I see as a result of the compile.

I have tried this with the local compile worker and a remote compile worker.
The local compile worker is a Windows XP (32 bit) (2002) with 3.17GB of RAM.

The remote compile worker (Xilinx 13.4 & 13.4 w/ 64-bit) is on a Enterprise Linux Client 5.6 (Tikanga) with 7.441GB of RAM.
However, for the remote compile worker, the GPIB error shows after completing the resource estimation process.

Both resource estimation processes have equivalent results, as was the case with your compile.


GoertzelResourceEstimate.JPG

 

Thanks,
Richard

0 Kudos
Message 5 of 9
(3,126 Views)

Hi Richard,

 

I am communicating with our R&D Department to see if we can determine why compiling this code fails. When I hear back from them, I will post back on here.

 

Best Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 6 of 9
(3,080 Views)

 

Has there been any news regarding this issue? 

 

Thanks,

Will

0 Kudos
Message 7 of 9
(2,840 Views)

Hi Will,

 

This slipped my mind - sorry about that. Let me follow up on this with R&D.

 

Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 8 of 9
(2,816 Views)

Hi Richard,

 

The reason you are running out of memory is because your front panel arrays are massive. You may need to either reduce the size of the arrays or consider using an alternate method to store that data such as streaming data via DMA FIFOs or block memory.

 

Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 9 of 9
(2,798 Views)