01-24-2013 04:52 AM
Is there a clever way of splitting an Uint32 into 32 directly accessable bits (not an aray) in LabVIEW FPGA?
The only way I could come up with is the following, which is a pain write for 32bits, and seems kind of a waste og resources to store all these indexes.
.
Regards, mola
Solved! Go to Solution.
01-24-2013 04:57 AM
I figured it out. I could use clusters by right-clicking the Array to Cluster block and increase the cluster size to 32.
01-24-2013 09:41 AM
Both methods are equally valid and consume zero resources on the FPGA. The array indices are compile-time constants that just get translated into wiring. Also, you can leave the indices unwired and they will default to the same order shown in your picture.
So at the end of the day the method to use comes down to style preference.
Jim
01-25-2013 03:46 AM
Hi Jim
Thanks for mentioning that - I think I prefer the first option then.
/mola