Borrar filtros
Borrar filtros

HDL Coder 'abs' : Double and complex data types not supported.

3 visualizaciones (últimos 30 días)
Michael Felger
Michael Felger el 18 de Sept. de 2019
Comentada: Michael Felger el 23 de Sept. de 2019
I'm using a simulink model to generate HDL code for simulation, with double values.
The error is clear, as "Double and complex data types" are not supported for HDL Code generation.
My question is, will this maybe be implemented in feature releases, or is there a fundamental issue that double values can't be supported for the function abs() for HDL code generation?

Respuestas (1)

Kiran Kintali
Kiran Kintali el 21 de Sept. de 2019
Editada: Kiran Kintali el 21 de Sept. de 2019
This is currently a limitation on the Abs block.
In the interim, please try the 'hypot' function in Math function block in Simulink.
  1 comentario
Michael Felger
Michael Felger el 23 de Sept. de 2019
I'm not using the abs block directly. What I want to do is to solve linear system of equations (square) with linsolve (https://de.mathworks.com/help/matlab/ref/linsolve.html).
In linsolve (LU factorization), the function abs() is called.
Is it somehow possible to replace this function call with hypot?

Iniciar sesión para comentar.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by