Home / Learn / Chip Design / Static Timing Analysis (STA) Explained

On this pageWhy timing has to be checkedWhy “static”Setup and holdSlackHow the analysis worksConstraintsCorners and modesAccounting for variationOther effects STA considersWhat STA does not doWhere it is usedCommon questionsRelated guides

Static Timing Analysis (STA) Explained

Static timing analysis, or STA, checks that every signal path in a chip meets its timing requirements, without running a simulation. It adds up the delays along each path and compares the total with the time the clock allows. Because it examines all paths mathematically instead of testing selected inputs, it is exhaustive and fast. STA is the method used to confirm a chip’s timing before it is released for manufacture.

Why timing has to be checked

A digital chip moves data from one flip-flop to the next on each clock tick. Between them, the data passes through logic gates and wires, each of which takes time.

Two things can go wrong. If the data takes too long, it misses the next clock edge. If it arrives too quickly, it can overwrite a value before that value has been safely captured. Either way, the chip computes the wrong result.

Why “static”

A dynamic check would simulate the chip with real inputs and watch the timing. That only covers the paths those inputs happen to exercise, and a chip has far too many paths and input combinations to simulate them all.

Static analysis ignores the actual data values. It treats the design as a network of delays and finds the slowest and fastest route between every pair of connected flip-flops. No test inputs are needed, and no path is skipped.

Setup and hold

Timing requirements come in two forms.

Setup. Data must arrive and be stable a short time before the clock edge that captures it. A setup violation means the path is too slow. It can be cured by running the clock slower.

Hold. Data must remain stable for a short time after the clock edge. A hold violation means new data arrived too soon. It cannot be cured by changing the clock speed. A chip with a hold violation fails at any frequency, which makes these especially serious.

Slack

The result of the analysis for each path is a number called slack.

  • Positive slack means the path meets its requirement with time to spare.
  • Negative slack means it fails, by that amount.

Two summary figures describe a design’s overall state. Worst negative slack is the size of the largest violation. Total negative slack is the sum of all of them, which indicates how much work remains.

How the analysis works

  • The design is treated as a graph in which gates and wires are delay elements.
  • The delay of each gate comes from the cell library and depends on the load it drives and the sharpness of its input signal.
  • The delay of each wire comes from its resistance and capacitance, extracted from the layout.
  • Arrival times are propagated forward from the clock through each path.
  • Required times are worked out from the clock period and the capture flip-flop’s needs.
  • The difference is the slack.

Constraints

STA is only as good as the instructions it is given. These are called timing constraints and they define:

  • Clocks, with their frequency and relationships
  • Input and output delays, describing timing at the chip’s boundaries
  • False paths, which exist in the circuit but never carry meaningful data and should not be checked
  • Multicycle paths, which are allowed more than one clock period
  • Uncertainty, representing clock jitter and margin

Wrong constraints are a leading cause of timing-related chip failures. A path wrongly marked as false is simply not checked.

Corners and modes

A chip must work across a range of conditions. Transistor speed varies with manufacturing, supply voltage and temperature. Wire properties vary as well.

Analysis is run at many combinations of these, called corners. Slow corners expose setup problems, and fast corners expose hold problems. The chip also has several operating modes, such as normal function and test, each with its own constraints.

The number of mode and corner combinations on an advanced chip can run into the hundreds, and all of them must pass.

Accounting for variation

Even on a single chip, two identical transistors do not behave identically. STA handles this by applying derating: assuming one part of a path is a little slower than nominal while another is a little faster.

Early methods applied a single fixed factor. Later ones became more refined, recognizing that random variations partly cancel along a long path. Current statistical formats describe the variation of each cell individually, giving more accurate results with less unnecessary margin.

Other effects STA considers

  • Crosstalk. A signal switching on one wire can speed up or slow down its neighbor.
  • Voltage drop. Gates run slower where the supply voltage sags.
  • Aging. Transistors slow down over years of use.
  • Clock path pessimism. Where launch and capture clocks share part of their route, that shared part cannot be both fast and slow at once, and the analysis corrects for it.

What STA does not do

STA checksSTA does not check
Timing of all synchronous pathsWhether the logic is functionally correct
Setup and hold requirementsSignals crossing between unrelated clocks
Signal transition limitsPaths excluded by the constraints
Clock pulse widthsAnalog circuit behavior

Functional correctness is the job of verification. Crossings between unrelated clocks need dedicated analysis tools.

Where it is used

STA runs repeatedly throughout the design process: after synthesis with estimated wire delays, after placement, after clock tree synthesis and after routing with fully extracted delays. The final run, with the most accurate data across all corners and modes, is sign-off. A design is not released until it passes.

The iterative effort of fixing violations until every path passes is known as timing closure.

Common questions

What is the difference between STA and simulation?

Simulation applies specific inputs and observes behavior over time. STA calculates the delay of every path without any inputs. STA is exhaustive for timing but says nothing about whether the function is right.

What is a timing violation?

A path whose delay breaks a setup or hold requirement, shown by negative slack. Violations must be fixed before the chip is manufactured.

Why are there so many corners?

Because a chip must work regardless of where it falls in the manufacturing spread and under all permitted voltages and temperatures. Each combination can produce a different worst-case path.

Related guides