MATLAB: Problem with a loop in the hdl coder

HDL Coderloop

Hello,
I have written a matlab code and I try to produce a vhdl code by using the hdl coder. The problem is that the following error is appearing during the procedure of the code generation. "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."
I have in the code a "while loop" and it seems that this error.Does anyone know why this error appears? As I know, the vhdl supports the "while loop".

Best Answer

I'm still learning vhdl and HDL coder, myself - you can use while loops, it just sounds like you need to provide some information on a variable. For example, if you have something like, "while x< 1," the synthesis program needs to know the range of x. So if you defined x as, say 1:10, then that should fix it.
Related Question