SIMULINK - HDL code generation with floating point & matlab function block

1 回表示 (過去 30 日間)
Nicholas Aitken
Nicholas Aitken 2018 年 8 月 7 日
回答済み: Kiran Kintali 2023 年 10 月 29 日
Hello,
I am trying to generate some HDL code using native floating point. I've written my own function in matlab and have imported it into my simulink model using the matlab function block. However, when I try to compile I get this error:
"Block 'my_function/MATLAB Function' is unsupported for HDL code generation when in native floating-point mode"
Anybody have any idea how to get around this? I would rather not use fixed-point conversion if I do not have to.
Thanks!

回答 (1 件)

Kiran Kintali
Kiran Kintali 2023 年 10 月 29 日
This restriction is relaxed since R2019b.
Simulink Blocks Supported by Using Native Floating Point
A large subset of MATLAB is supported with Floating Point and HDL Code Generation.

Community Treasure Hunt

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

Start Hunting!

Translated by