Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21017 Discussions

How to calculate Setup slack and Hold slack?

ErenYagar
Beginner
5,172 Views
 
I'm having trouble understanding how to calculate Setup slack and Hold slack correctly. According to the Intel Quartus Timing Analysis manual, Setup slack is calculated as Data Required Time (Setup) minus Data Arrival Time, and Hold slack is calculated as Data Arrival Time minus Data Required Time (Hold).
However, no matter how I calculate it, my results never seem to match up. I've been spending a lot of time trying to figure out the concept of hold and setup, but it's been challenging. Is it normal to find these concepts difficult to grasp? Can someone explain the correct algorithm for calculating Setup slack and Hold slack?
I've referred to the following articles as my reference:
I would greatly appreciate any help or insights. Thank you in advan354905131_1074611430165582_3809048581545014384_n.jpg355092480_1074611336832258_3781174020036982781_n.jpgce!
Labels (1)
0 Kudos
1 Solution
sstrell
Honored Contributor III
5,151 Views

Your screenshots are not showing the whole picture (scroll to the bottom to get the data arrival and data required times; you've highlighted the clock edges, not the arrival and required times).  Look at the Waveform tab in the timing analyzer reports.  They show where the data arrival and data required times are located.  Then correlate that to the numbers in the path reports in the Data Path tab.

Also check out this training: https://cdrdv2.intel.com/v1/dl/getContent/653046

View solution in original post

0 Kudos
4 Replies
sstrell
Honored Contributor III
5,152 Views

Your screenshots are not showing the whole picture (scroll to the bottom to get the data arrival and data required times; you've highlighted the clock edges, not the arrival and required times).  Look at the Waveform tab in the timing analyzer reports.  They show where the data arrival and data required times are located.  Then correlate that to the numbers in the path reports in the Data Path tab.

Also check out this training: https://cdrdv2.intel.com/v1/dl/getContent/653046

0 Kudos
RichardTanSY_Intel
5,111 Views

As sstrell mentioned, if you click on the Waveform tab, it will help you to visualize how the timing slack is calculated.

The Data Path tab traces timing paths through the FPGA so you will only see the exact Data Arrival Time(DAT) and the Data Required Time(DRT) at the table's last row. You can find the DAT and DRT at the Path Summary tab as well.

Attached screenshot for clearer understanding.

 

Best Regards,

Richard Tan

 

p/s: If you find any answers from the community or Intel Support to be helpful, we encourage you to mark them as the best answer or rate them 4/5 in the survey

 

0 Kudos
RichardTanSY_Intel
5,079 Views

Thank you for acknowledging the solution provided. I'm glad to hear that your question has been addressed.

Now, I will transition this thread to community support. If you have any further questions or concerns, please don't hesitate to reach out.

Thank you and have a great day!


Best Regards,

Richard Tan



0 Kudos
Akbar_ali
Beginner
3,856 Views

Understanding setup and hold timing in FPGA design can indeed be challenging, and you're not alone in facing these difficulties. The formula you mentioned is correct, but the devil is often in the details. Let me provide some clarification and references to Intel's Quartus Prime Timing Analysis manual.

Setup Slack: It's the time difference between the required time for data to stabilize (Setup) and the actual arrival time of the data. Mathematically, Setup Slack = Data Required Time (Setup) - Data Arrival Time.

Hold Slack: It's the time difference between the actual arrival time of the data and the required time for the data to remain stable (Hold). Mathematically, Hold Slack = Data Arrival Time - Data Required Time (Hold).

It's important to note that negative slack values indicate a violation of timing constraints, meaning your design may not meet the required timing specifications.

For detailed insights and step-by-step guidance on calculating setup and hold slack using Intel Quartus Prime, I recommend referring to the official documentation. Check the Timing Analysis chapter in the Intel Quartus Prime Handbook, particularly the section on Setup and Hold Timing Analysis.

Additionally, online tools and calculators specific to FPGA timing analysis might be beneficial. Intel's forums and community support are also excellent resources for getting help with specific challenges you're facing.

Remember, FPGA timing analysis concepts often become clearer with practice, so don't hesitate to work through examples and seek community assistance. Best of luck with your FPGA design endeavors!
Reviewed by https://gstcalculatoronline.com/australian-gst-calculator/ 

0 Kudos
Reply