Filter löschen
Filter löschen

How to generate a fixed point HDL Code from a Simscape Electrical model ?

2 Ansichten (letzte 30 Tage)
Hello,
I want to generate the HDL Code from a Simscape Electrical model. Here is what I am doing:
  1. I run the sschdladvisor tool to generate the Simulink implementation model. This generated Simulink implementation model is in single format. The matrices of the state-space model are 3D matrices.
  2. I run the HDL Workflow Advisor on the generated Simulink implementation model. The generated HDL Code is too big to fit into a Xilinx Kintex ultrascale+ XCKU15P.
  3. I adapted the generated Simulink implementation model from single to fixed point format.
  4. I run the HDL Workflow Advisor on the fixed point Simulink implementation model, but it returns the error that the 3D matrices are not allowed:
Could you please help me to adapt the generated Simulink implementation model into a fixed point format that is compatible with the HDL Code generation ?
Thank you for you help

Antworten (1)

Kiran Kintali
Kiran Kintali am 27 Apr. 2020
Typically fixed-point conversion leads significant numerical challenges on this model due to large dynamic ranges of the state-space matrices involved during Simscape to HDL FPGA translation. Hence only floating-point workflow is currently enabled.
Can you share your usecase simscape model and manually converted fixed-point model? we would like to evaluate the validation strategy and provide further guidance on potential options.
Thanks

Kategorien

Mehr zu Hardware-in-the-Loop Simulation with Simulink Real-Time finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by