How to generate a fixed point HDL Code from a Simscape Electrical model ?
4 views (last 30 days)
Show older comments
Hello,
I want to generate the HDL Code from a Simscape Electrical model. Here is what I am doing:
- 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.
- 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.
- I adapted the generated Simulink implementation model from single to fixed point format.
- 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
0 Comments
Answers (1)
Kiran Kintali
on 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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!