LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Array in FPGA

I noticed there isn't a add array elements in FPGA and was wondering how I can go about doing this task another way?  Looking for something wiht less overhead as well.  Any takers?  I tried using a for loop, index array, then run that index into an addition element, from the additioin element to a shift register, then the shift register into the other end of the add element.  This works for the first N (for loop interation), but after that, it just keeps climbing in values.  Any ideas?

 

guilio_2008

Message Edited by guilio_2008 on 09-16-2008 11:59 AM
0 Kudos
Message 1 of 3
(3,213 Views)
You cannot build a variable-sized array in LV FPGA; all arrays must be fixed sized.  See the help.
0 Kudos
Message 2 of 3
(3,210 Views)

Another option would be to use a memory or FIFO block which is configured with the expected maximum number of elements.

Depending on your use case you may use the one or the other

 

Thanks,

ThSa

 

Message 3 of 3
(3,187 Views)