Calculator

Setup and hold timing slack calculator

Circuit design and memory. Everything is calculated in your browser; nothing you enter is sent to a server.

KEY POINTS

Setup slack is the clock period + skew − setup time − uncertainty − (tcq + combinational delay); if it is negative, lower the frequency or reduce the logic depth. Hold is a "too fast" problem where new data overtakes on the same edge. Lowering the frequency does not fix it; inserting delay buffers does.

Inputs (all times in ps)

Setup slack30.0ps
Hold slack20.0ps
Clock period T500.0ps
Maximum frequency of this path2128MHz
Data arrival time (setup / hold)425 / 55ps
Rough number of 15 ps gates that fit27stages

Positive skew (the capture clock arrives later) helps setup and hurts hold. Real static timing analysis (STA) checks every path at each process, voltage and temperature corner, including wire parasitic RC and on-chip variation (OCV).

Frequency and setup slack

FrequencyPeriodSetup slackResult
1000 MHz1000 ps530 psOK
1500 MHz667 ps197 psOK
2000 MHz500 ps30 psOK
2500 MHz400 ps-70 psViolation
3000 MHz333 ps-137 psViolation
3500 MHz286 ps-184 psViolation

Setup versus hold

In a synchronous circuit, data launched from one flip-flop must reach the capturing flip-flop before the next clock edge (setup time) and stay stable for a while after the edge (hold time). Setup is a "too slow" problem: the logic is too long for the clock period, and lowering the frequency fixes it. Hold is a "too fast" problem: new data races through on the same edge, and it occurs regardless of frequency.

A single path with negative slack is enough to make a chip fail. Late in the design, slack is checked by static timing analysis using delays extracted after place and route, and violations are driven to zero through clock tree tuning and gate sizing before tape-out.

FAQ


Does clock skew help or hurt?

Positive skew, where the capture clock arrives later, gives setup more time but makes hold harder. Designers sometimes add skew on purpose (useful skew) to fix setup violations.

Why doesn't lowering the frequency fix hold violations?

Hold compares data and clock on the same edge, so the clock period does not appear in the hold check. Only adding delay on the short path fixes it.

Related equipment and companies


More calculators


Circuit design and memory

Last updated: October 23, 2026