How to solve "unsupported unbounded loop structure"?

3 次查看(过去 30 天)
Hello, I'm trying to generate VHDL code for OQAM modulation. In this I got error for loop which unsupported and unbounded because of for loop. I also tried while loop to bound the loop as given in some solutions but still it is not working.
The HDL coder gives below error:
"Found an unsupported unbounded loop structure. This loop may be user written or automatically generated due to the use of specific vector expressions or functions. For more information on unsupported loop structures, please refer to the documentation."
thanks in advance.
  2 个评论
Walter Roberson
Walter Roberson 2016-2-15
Please do not use "l" (lower-case L) as the name of a variable! It is too easily confused with the digit "1"

请先登录,再进行评论。

采纳的回答

Tim McBrayer
Tim McBrayer 2016-2-15
Does your code have a while loop, a for loop with a non-static limit, or something similar? This sort of construct is what the error message is referring to. The number of loop iterations must be static for HDL code generation.
  1 个评论
Jaydeep Parmar
Jaydeep Parmar 2016-2-16
Thanks Sir, I was trying for loop with limit of variable L which is size of input data. Now I put direct number of length, and solved the problem.

请先登录,再进行评论。

更多回答(0 个)

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by