MATLAB Answers

Bad Timing Delays after insterting IP Core generated from Simulink

1 ビュー (過去 30 日間)
Alex Konev
Alex Konev 2020 年 11 月 16 日
コメント済み: Alex Konev 2020 年 11 月 17 日
Hello, I've got a vivado project with added simulink-generated IP Core.
I'm always getting huge timing delays on the implimentation stage.
For test purposes, I've made a very simple simulink project with multipliers.
I'm exporting it with the following settings:
Adding it to the following block design:
Connecting clock enable to constant 1, reset to inverted reset, used in previous blocks (because the simulink generated IP Core uses inverted reset).
I'm getting the following result:
I've tried both generating HDL code and packaging it into IP Core by Vivado and generating IP Core directly from Simulink. The results are the same.
There are no timing errors If I don't use simulink generated IP core (or HDL code).
Is there some settings I've applied wrong?

回答 (2 件)

Wang Chen
Wang Chen 2020 年 11 月 16 日
編集済み: Wang Chen 2020 年 11 月 16 日
Hi Alex,
It looks like your model does potentially has a long critical path, as I don't see any pipeline delays on the data path.
Did you try to add pipelining registers?
Also, It looks like your data path is running on a slower rate(I saw the data path is in green rate, instead of red rate). An alternative option when your critical path is in slower rate is to use the “Enable-based multi-cycle path constraint” feature. This feature is by-default off.
You can refer following video to use multi-cycle path constraint feature:
Or following document:
Please also remember to apply the constraint to the new project when you add the generated HDL coder into Vivado project by yourself.
Also, following document page also shows some features (like back annotation of critical path to model) to help you identify critical path to meet timing:
Thanks,
Wang
  1 件のコメント
Alex Konev
Alex Konev 2020 年 11 月 17 日
Thank you for your assistance.
I've managed to get the model working.
Could you please answer related question: is the "Target frequency" setting in the HDL Workflow Advisor applies only as a constrain?
What I mean is that I have another simulink generated HDL block for frequency 100 MHz, but I've changed the clock to 62.5 MHz.
I saw that the clock frequency is stored in simulink generated constain file.
Does changing the clock frequecy in constrain file would be enough, or the simulink generates the code based on that parameter and there would be errors if I change the frequency only in constrain?

サインインしてコメントする。


Vighnesh Kamath
Vighnesh Kamath 2020 年 11 月 16 日
Hi Alex,
Is it possible for you to send your Simulink model from the above image?
We can do some analysis on it and try to provide you a solution to fix your problem.
Regards,
Vighnesh

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by