Hi, guys! I'm new to labview fpga. Basically I would like to build a VI for convolution. However in fpga it seems like the Array size can not be changed at all. My VI works fine in the main VI but it just keep reporting errors in fpga. So how to actually insert elements into Arrays in a for loop. Or how to build a VI for convolution in fpga. Thank you very much!
Solved! Go to Solution.
Or how to build a VI for convolution in fpga.
Use fixed-sized arrays - the FPGA only supports them. Point.
this is the first part, however I eventually would like to perform discrete wavelet transform in fpga which requires decimation. I can use fixed-size in convolution but the decimation will definitely to change the array size.
Hi! I didnt try yet, I will do it. And could you shortly describe the function of the Memory in fpga ? Thank you!
Can you explain why you need to insert elements into arrays to perform a convolution? There are efficient in-place algorithms. Can you show us what you are doing, i.e. some simplified code? Thanks!
Hi! I'm sorry my Supervisor told me I'm not allowed to upload the code online, though I don't think what I'm doing is classified.
Anyway I have successfully built the convolution with fixed size Array. However the Problem is that I'm trying to build discrete wavelet transform which contains decimation of the samples. So basically, at the end of the For Loop, I need to discard half of the samples and return the half size Array to the beginning. So the shift Registers at my For Loop have different size and the fpga does not allow this. That's my problem now.
I need to discard half of the samples and return the half size Array to the beginning. So the shift Registers at my For Loop have different size and the fpga does not allow this.
- replace half of the array elements by zeros…
- reorder the needed array elements to the first half of your array and replace the second half by zero…
- use a 2nd shift register to keep the half-size array
All those options boil down to: you have to work with fixed-sized arrays!