annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Labview FPGA, Array Subset Missfunction/Bugreport

Hi,

Not shure if I am in the right place for this, let me know if not

 

The FPGA code below returns following Error, when generating Intermetiate files.

"LabVIEW cannot determine the size of the array output because a node input is a non-constant value.  Ensure that all index and length inputs resolve to constant values."

 

>> LabVIEW cannot determine the size of the array

Why? The size is always 17? Size of Input array ist 64. Possible Indexes are 0, 20, 40.

 

>> Ensure that all index and length inputs resolve to constant values.

The length, yes I agree! But why I'm not allowed to choose the index?

 

The VHDL/intermediate File translation should be somethig like

if select = 1 then

   out <= in(16 downto 0)

elif select = 2 then

  out <= in(36 downto 20)

[...]

fi

 

Is there any nice Solution for this? In general how to get a subset from a unsigned integer in the most efficient way?

Thanks

Martin

 

Using:

Labiew 17sp1

vivado 2015.4

sbRio9651

 

 

LvFpgaArrayBug.png

0 Kudos
Messaggio 1 di 5
3.305Visualizzazioni

 

 

Duplicate some Code and it works! code below is ok!

 

But still, the reason for this is still not clear for me...

LvFpgaArrayBugSolved.png

0 Kudos
Messaggio 2 di 5
3.292Visualizzazioni

Static array index as opposed to non static makes all the difference.

0 Kudos
Messaggio 3 di 5
3.278Visualizzazioni

except array size & array index none other functions re supportable

0 Kudos
Messaggio 4 di 5
1.707Visualizzazioni

@Harishkanmani wrote:

except array size & array index none other functions re supportable


Not true. With static-length Array inputs and static indices, "Build Array", "Array Subset", "Delete from Array" and so on are perfectly fine on FPGA.

Messaggio 5 di 5
1.702Visualizzazioni