Delay balancing unsuccessful. Cause: Non-discrete rates cannot be handled by delay balancing. Offending block: sqrt_to_hdl
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andrew Sol
am 26 Jun. 2024
Beantwortet: Tom Richter
am 28 Jun. 2024
Hello,
I am getting this error when generating Verilog at the HDL Coder:
Error:
For the block 'sqrt_to_hdl_coder/Sqrt'
Delay balancing unsuccessful. Cause:
Non-discrete rates cannot be handled by delay balancing. Offending block: sqrt_to_hdl_coder/Sqrt
This error occurs when I try to convert the entire schema into Verilog (Generate HDL Code). Previously there were errors related to the data type, I fixed this by setting a "fixed-point" in the input and output settings, and also setting restrictions (min and maximum).
0 Kommentare
Akzeptierte Antwort
Tom Richter
am 28 Jun. 2024
Hi Andrew,
You can only generate HDL code from discrete models. That means, you need to set a sample time. Seeing your model you use an ODE solver and even a veriable step one. Even though HDL Coder allows these solver settings the system you generate code for must be discrete. Please have a look here and also follow the HDL Tutorial.
Best regards,
Tom
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Speed Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!