Timing
Timing
02/13/12
02/13/12
Two Methods:
Static Timing Analysis Method of validating the timing performance of a design by checking all possible paths for timing violations. Dynamic Timing Analysis Determines the full behavior of the circuit for a given set of input stimulus vectors
02/13/12
02/13/12
Timing Paths
Each path has a startpoint and an endpoint.
The startpoint is a place in the design where data is launched by a clock edge. The data is propagated through combinational logic in the path and then captured at the endpoint by another clock edge. The startpoint of a path is a clock pin of a sequential element, or possibly an input port of the design (because the input data can be launched from some external source). The endpoint of a path is a data input pin of a sequential element, or possibly an output port of the design (because the output data can be captured by some external sink).
02/13/12 9
02/13/12
10
Path 4 Path 1 starts at an input port and ends at the data input of a sequential element. Path 2 starts at the clock pin of a sequential element and ends at the data input of a sequential element. Path 3 starts at the clock pin of a sequential element and ends at an output port. Path 4 starts at an input port and ends at an output port. 02/13/12 11
A combinational logic cloud might contain multiple paths. Tool (PrimeTime) uses the longest path to calculate a maximum delay or the shortest path to calculate a minimum delay. Clock path (a path from a clock input port or cell pin, through one or more buffers or inverters, to the clock pin of a sequential element) for data setup and hold checks Clock-gating path (a path from an input port to a clockgating element) for clock-gating setup and hold checks Asynchronous path (a path from an input port to an asynchronous set or clear pin of a sequential element) for recovery and removal checks Critical Path (path between an input and an output with the maximum delay) for finding the maximum frequency
02/13/12 12
Path Types:
02/13/12
13
Delay Calculation
The total delay of a path is the sum of all cell and net delays in the path Cell Delay Cell delay is the amount of delay from input to output of a logic gate in a path Net Delay Net delay is the amount of delay from the output of a cell to the input of the next cell in a timing path
02/13/12 14
Constraint Checking
A setup constraint specifies how much time is necessary for data to be available at the input of a sequential device before the clock edge that captures the data in the device. This constraint enforces a maximum delay on the data path relative to the clock path. A hold constraint specifies how much time is necessary for data to be stable at the input of a sequential device after the clock edge that captures the data in the device. This constraint enforces a minimum delay on the data path relative to the clock path.
02/13/12 15
Constraint Checking
The amount of time by which a violation is avoided is called the slack. E.g.: for a setup constraint, if a signal must reach a cell input at no later than 8 ns and is determined to arrive at 5 ns, the slack is 3 ns. A slack of 0 means that the constraint is just barely satisfied. A negative slack indicates a timing violation.
02/13/12 16
02/13/12
17
PrimeTime assumes that signals are to be propagated through each data path in one clock cycle. Therefore, when PrimeTime performs a setup check, it verifies that the data path delay is small enough so that the data launched from FF1 reaches FF2 within one clock cycle
02/13/12 18
Setup check: PrimeTime considers the longest possible delay along the data path and the shortest possible delay along the clock path between FF1 and FF2
02/13/12 19
Hold check: PrimeTime verifies that the data launched from FF1 reaches FF2 no sooner than the capture clock edge for the previous clock cycle. This check ensures that the data already existing at the input of FF2 remains stable long enough after the clock edge that captures data for the previous cycle. PrimeTime considers the shortest possible delay along the data path and the longest possible delay along the clock path between FF1 and FF2. A hold violation can occur if the clock path has a long delay
02/13/12 20
Timing Exceptions
Paths that are not intended to operate or different.
False path A path that is never sensitized due to the logic configuration, expected data sequence, or operating mode. Multicycle path A path designed to take more than one clock cycle from launch to capture. Minimum/maximum delay path A path that must meet a delay constraint that you specify explicitly as a time value.
02/13/12 21
02/13/12
22
02/13/12
23
02/13/12
24
02/13/12
25
Timing Models
Timing model contains information on the timing characteristics, but not the logical functionality, of a submodule.
02/13/12
26
Quick timing model - approximate timing model, useful early in the design cycle Extracted model - discards all of the logic of the original netlist and replaces it with a set of timing arcs between clocks, inputs, and outputs Interface logic model - preserves the interface logic of the original netlist and discards the internal register-toregister logic that has already been verified at the module level Stamp model - a timing model defined in a descriptive language, either written manually or translated from a timing description in another form
02/13/12 27
Advance Features
Multiple clocks and clock frequencies Automatic false path detection Transparent latch analysis and time borrowing Simultaneous minimum/maximum delay analysis for setup and hold constraints Analysis with on-chip variation of process, voltage, and temperature (PVT) conditions Case analysis (analysis with constants or specific transitions applied to specified inputs) Mode analysis (analysis with module-specific operating modes, such as read mode or write mode for a RAM module) Bottleneck analysis (reporting of cells that cause the most timing violations) What-if analysis without modifying the original netlist, using inserted buffers, resized cells, and modified nets Analysis of crosstalk effects between physically adjacent nets using the PrimeTime SI (signal integrity) option
02/13/12 28
The End.
Thanks.
02/13/12
30