Logic setup-hold timing worksheet calculator

Calculate setup margin and hold margin with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use setup margin and hold margin to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Clock period (ns)
10
Maximum launch clock-to-Q plus data delay (ns)
6
Minimum launch clock-to-Q plus data delay (ns)
2
Setup requirement (ns)
1
Hold requirement (ns)
0.5
Capture-minus-launch clock skew (ns)
0.2
Worst-case timing uncertainty (ns)
0.1
Setup margin (ns)
3.1
Hold margin (ns)
1.2

Try another scenario

Clock period (ns)
11
Maximum launch clock-to-Q plus data delay (ns)
6
Minimum launch clock-to-Q plus data delay (ns)
2
Setup requirement (ns)
1
Hold requirement (ns)
0.5
Capture-minus-launch clock skew (ns)
0.2
Worst-case timing uncertainty (ns)
0.1
Setup margin (ns)
4.1
Hold margin (ns)
1.2
Calculation method

Calculation method

Setup margin (ns)

Clock period + skew − max path − setup − uncertainty.

Hold margin (ns)

Min path − skew − hold − uncertainty.

Symbols and units
a
Clock period (ns)
b
Maximum launch clock-to-Q plus data delay (ns)
c
Minimum launch clock-to-Q plus data delay (ns)
d
Setup requirement (ns)
e
Hold requirement (ns)
f
Capture-minus-launch clock skew (ns)
g
Worst-case timing uncertainty (ns)

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Assumptions & limits

Assumptions & limits

  • Clock-data delays, device requirements, jitter. Returns Timing margins. All coefficients and observations are user supplied; results describe only the stated mathematical model. Quantities are deterministic calculations from supplied observations and assumptions; no external data is fetched. Supported limits: Finite inputs only; numeric fields bounded as labelled. Lists and JSON records are limited to 256 entries unless a stricter tool bound is stated. No automatic design approval, legal conclusion, treatment recommendation or safety certification. Clock period (ns): minimum 1e-12, maximum 1000000000000.0. Maximum launch clock-to-Q plus data delay (ns): minimum 0, maximum 1000000000000.0. Minimum launch clock-to-Q plus data delay (ns): minimum 0, maximum 1000000000000.0. Setup requirement (ns): minimum 0, maximum 1000000000000.0. Hold requirement (ns): minimum 0, maximum 1000000000000.0. Capture-minus-launch clock skew (ns): minimum None, maximum 1000000000000.0. Worst-case timing uncertainty (ns): minimum 0, maximum 1000000000000.0.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.