How to convert a Simscape Electrical model into a Fixed-point HDL generable model ?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Samuel Quiniou
el 19 de Nov. de 2019
Respondida: Kiran Kintali
el 26 de Nov. de 2019
Hello,
I want to generate a Simscape Electrical model into HDL Fixed-point Code. I followed the tutorial that gives the following workflow:
Simscape Electrical model -> Simscape HDL Workflow Advisor -> Simulink implementation model -> HDL Coder -> HDL floating point Code
If I replace the single format of the input in the Simulink implementation model by a fixed-point format, the compilation failed with many errors around the Multiply Matrix block and the format of the matrices created by Simscape HDL Workflow Advisor.
Is this workflow compatible with fixed-point HDL Code generation ?
0 comentarios
Respuesta aceptada
Kiran Kintali
el 26 de Nov. de 2019
This workflow currently supports double, single and in future half precision formats.
The workflow currently does not yet support fixed-point due to high dynamic range and precision requirements of state space matrices and HIL models.
See related documentation about this topic under Use Larger Floating-Point Precision
web(fullfile(docroot, 'hdlcoder/ug/validate-hdl-implementation-model-and-resolve-numerical-mismatches.html#mw_c603353a-909c-4d48-a634-7b741748b4ce'))
Please contact Tech Support and share your model for additional support on fixed-point.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Parameterization Methods en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!