MATLAB: Do I receive the error “unable to allocate delays to compensate for the N delays introduced by BLOCK in native floating point mode”

HDL Coder

Why do I receive the error following error?
unable to allocate delays to compensate for the N delays introduced by BLOCK in native floating point mode
I made some changes to one of my generated HDL Coder models and started seeing this error. I see the error in step 3.2 of the HDL Workflow Advisor.

Best Answer

Please be cautious when modifying generated HDL Coder models. These generated models have special characteristics that are required by HDL Coder. For example, signals must have delays to account for floating point latency. If you edit your source model and regenerate your HDL Coder models, errors such as these will go away.
If you are confident that you must modify the generated HDL model, you can add delay blocks to the output signals of the blocks that should have an associated latency.
Please visit the following page from the HDL Coder Documentation for more info: