unsupported functions by hdl coder

6 次查看(过去 30 天)
I'm trying to convert an ANN code to HDL. It does not convert 'exp' and 'arryfun' to fixed point, because they are not supported by HDL coder. Is there a way to solve this problem?
followings are the erros I get.
myNeuralNetworkFunction1:0ErrorCall to function 'exp' is not supported for HDL code generation, at Function 'exp' (#30.138.148), line 8, column 9 Function 'applyScalarFunctionInPlace' (#21.1026.1041), line 32, column 16 Function 'exp' (#29.243.324), line 9, column 5 Function 'myNeuralNetworkFunction1' (#1.16943.16952), line 94, column 15 Function 'myNeuralNetworkFunction1' (#1.15665.15705), line 39, column 6.
myNeuralNetworkFunction1:0ErrorCall to function 'rtIsNaN' is not supported for HDL code generation, at Function 'isnan' (#42.424.436), line 14, column 13 Function 'unaryMinOrMax' (#34.27862.27870), line 868, column 6 Function 'unaryMinOrMax' (#34.28237.28244), line 879, column 4 Function 'unaryMinOrMax' (#34.27194.27216), line 844, column 11 Function 'unaryMinOrMax' (#34.4633.4670), line 114, column 18 Function 'minOrMax' (#33.1709.1758), line 49, column 14 Function 'minOrMax' (#33.627.669), line 19, column 10 Function 'max' (#32.304.346), line 13, column 14 Function 'myNeuralNetworkFunction1' (#1.16246.16257), line 68, column 8 Function 'myNeuralNetworkFunction1' (#1.16177.16196), line 64, column 9 Function 'myNeuralNetworkFunction1' (#1.15723.15763), line 42, column 6.
myNeuralNetworkFunction1:0ErrorCall to function 'rtIsNaN' is not supported for HDL code generation, at Function 'isnan' (#42.424.436), line 14, column 13 Function 'unaryMinOrMax' (#34.27862.27870), line 868, column 6 Function 'unaryMinOrMax' (#34.28485.28492), line 888, column 27 Function 'unaryMinOrMax' (#34.27194.27216), line 844, column 11 Function 'unaryMinOrMax' (#34.4633.4670), line 114, column 18 Function 'minOrMax' (#33.1709.1758), line 49, column 14 Function 'minOrMax' (#33.627.669), line 19, column 10 Function 'max' (#32.304.346), line 13, column 14 Function 'myNeuralNetworkFunction1' (#1.16246.16257), line 68, column 8 Function 'myNeuralNetworkFunction1' (#1.16177.16196), line 64, column 9 Function 'myNeuralNetworkFunction1' (#1.15723.15763), line 42, column 6.
myNeuralNetworkFunction1:0ErrorCall to function 'exp' is not supported for HDL code generation, at Function 'exp' (#30.138.148), line 8, column 9 Function 'applyScalarFunctionInPlace' (#21.1026.1041), line 32, column 16 Function 'exp' (#29.243.324), line 9, column 5 Function 'myNeuralNetworkFunction1' (#1.16298.16304), line 70, column 13 Function 'myNeuralNetworkFunction1' (#1.16177.16196), line 64, column 9 Function 'myNeuralNetworkFunction1' (#1.15723.15763), line 42, column 6.
myNeuralNetworkFunction1:0ErrorMATLAB HDL Coder failed in the code generation phase. See HDL Coder conformance report.
Toolbox Function Usage: Unsupported List
matlab/datatypes arrayfun
  2 个评论
Debopam  Dey
Debopam Dey 2020-11-2
Did you find any solution to the above problem. I am facing the same issue.
Thanks
A.Arun Bennett
A.Arun Bennett 2022-8-2
Could you please update on this issue?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by