HDL coder error: Conversion to HDL

1 view (last 30 days)
Navya Mohan
Navya Mohan on 21 Jan 2015
Answered: Tim McBrayer on 21 Jan 2015
My Simulink model file(cent_momnew.mdl) when running 'Run compatibility checker' is giving some warning like following :
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cent_momnew/loop1/For Iterator WarningCannot find the implementation for block 'cent_momnew/loop1/For Iterator'.
cent_momnew/loop1/For Iterator Subsystem/IC WarningCannot find the implementation for block 'cent_momnew/loop1/For Iterator Subsystem/IC'.
cent_momnew/loop1/For Iterator Subsystem/1-D Lookup Table WarningHDL code generation for the Lookup Table (n-D) block does not support out-of-range inputs. Set the "Action for out of range input" block parameter to "Error" to suppress this warning.
cent_momnew WarningHDLCoder can not find a valid sample time for the model. All rates are 0 (continuous).
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
and finally when i gave 'generate HDL' it is giving the following error:
Assertion failed: .\dom_pir_core\clockmanager.cpp:198:unexpected sample time: -1
Please help me to solve this. Thanks in advance

Answers (1)

Tim McBrayer
Tim McBrayer on 21 Jan 2015
The For Iterator Subsystem is not supported for HDL code generation. Run the following command in MATLAB to access the documented list of blocks supported for HDL Code generation.
>> web(fullfile(docroot, 'hdlcoder/block-support.html'))

Products

Community Treasure Hunt

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

Start Hunting!