Delay Balancing Error (RTL Code/ IP Core generation)

조회 수: 20 (최근 30일)
Andrea Foradori
Andrea Foradori 2019년 5월 14일
편집: Kiran Kintali 2024년 6월 11일
Hallo everybody
I am using MATLAB/SIMULINK and HDL Coder to generate and IP Core for the ZedBoard DevKit.
I am encountering an issue with the "Delay Balancing" option. Basically SIMULINK got stuck during the HDL Code generation with the following error message:
“Error Delay balancing unsuccessful because Delay introduced in feedback loop cannot be path balanced. Offending Block: ....../Trigonometric Function”
1. Could someone please explain me the reason why this is happening ?
2. Could someone please explain me what should I do to avoid this situation?
I find a workaround for this issue. I have done the following changes:
- I put the "Trigonometric Fucntion" blocks into a subsystem (called "Trigonometric Fcn")
- I have disabled the "BalanceDelays" option from the HDL Coder properties
- I have set to "OFF" the "BalanceDelays" option for the "TOP" subsystem of the model
- I have left set to "Inherit" the "BalanceDelays" option for the other subsystems of the model
- but I have set to "ON" the "BalanceDelays" option for the "Trigonometric Fcn" subsystems of the model
- I have generated the "Validation Model" and I have verified that the results match the original one
This allow me to generate the HDL code and continue to the creation of the IP Core and the Vivado project.
But I would like to keep the BalanceDelays option "ON" otherwise the HDL code won't be optimised in terms of area and timing performance.
3. Could someone please give me the correct solution to this error?
I am sorry, but I cannot share the code otherwise I would attached the model and other useful information.
Thank you in advance,
Andrea Foradori
  댓글 수: 2
FPGA User
FPGA User 2020년 11월 29일
Barry, just to confirm, HDL coder will require disabling delay balancing if the model containts introduced delays inside a feeback loop.
Kiran Kintali
Kiran Kintali 2024년 6월 11일
편집: Kiran Kintali 2024년 6월 11일
Disabling delay balancing is not recommended.
If you have stable paths (input signals that do not change after reset time such as filter coeffients) that need not be balanced you can use the port level option to turn off delay balancing on those paths.
In all other usecases you need to allocate the latency budget required for the feedback loop with design delays or use clock rate pipelining (by enabling oversampling) to accomadate delay balancing of those feedback paths.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kiran Kintali
Kiran Kintali 2020년 12월 1일
편집: Kiran Kintali 2024년 6월 10일
You need to work towards not introduce delays in feedback loops, or manually add design delays and balance/handle delays in the loop.
If your design has a budget for OverSampling (typical control system designs have such affordance huge ratio between clock rate in MHz and data rate in KHz) set the OverSampling factor on the model and let HDLCoder use the budget to do clock rate pipelining and balance delays in feedback loops.

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by