MATLAB: How to solve “unsupported unbounded loop structure”

fbmcHDL Coderoqam modulation

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.

Best Answer

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.