cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eewse
Adventurer
Adventurer
731 Views
Registered: ‎02-24-2019

how to pass a hls::mat array as a parameter of a function?

Jump to solution

I need to split a big hls:mat into 49 smaller hls:mat with a function syntax similar to below

splitup(hls::mat& input, hls::mat& output[49]) {

}

it is ok to "csim" with this function but when it is "synthesized", the following errors will occur:

ERROR: [SYNCHK 200-11]  Variable 'output.data.V' has an unsynthesizable type '[49 x i24*]*' (possible cause(s): pointer to pointer or global pointer).
ERROR: [SYNCHK 200-61]  unsupported memory access on variable 'output.data.V' which is (or contains) an array with unknown size at compile time.

It is very odd to create a function with 1+49 parameters. Any advices?

Eli

 

 

 

0 Kudos
1 Solution

Accepted Solutions
wenchen
Moderator
Moderator
663 Views
Registered: ‎05-27-2018

Hi @eewse ,

    Pointers to pointers are supported for synthesis but not when used as an argument to the top-level function。

    Did you set the splitup as the top-level function?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.


**~ Got a minute? Answer our Vitis HLS survey here! ~**


-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
wenchen
Moderator
Moderator
664 Views
Registered: ‎05-27-2018

Hi @eewse ,

    Pointers to pointers are supported for synthesis but not when used as an argument to the top-level function。

    Did you set the splitup as the top-level function?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.


**~ Got a minute? Answer our Vitis HLS survey here! ~**


-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
eewse
Adventurer
Adventurer
608 Views
Registered: ‎02-24-2019

@wenchen 

 

Many thanks

 

Eli

0 Kudos