Monday 7 March 2011

Margin (Slack)

            Input data is checked against the clock to ensure that it meets the setup and hold requirements that define the required window.

The difference between the valid and required times is called the margin. The difference between the setup time and the signals late event delay time is called the setup margin, or setup slack.

Margins may be either positive or negative. A positive margin means that the signal meets the timing requirement. A negative margin means that the signal does not meet the timing requirement. A negative margin indicates a timing violation.

Valid and Required Time

Valid time

            Valid time is the time during which a signal is stable. Timing defined at FUB inputs and Flip Flop outputs is used as valid time, and propagated on all paths origination at this node.

Required time
            The required time is the time during which a signal is required. This time is defined at FUB outputs and Flip Flop inputs

Timing Events

 

      A signal can become stable at different times for various reasons, for example the transition may be caused by different logic paths, or it may be affected by physical variations that affect circuit behavior. Such factors can cause the signal to transition at different points of time. Therefore a signal can become stable at latest time (a late event) and unstable at earliest time (an early event).

Late Event:
     
When you want to check whether a signal is sure to arrive in time to meet a timing requirement coming from a sampling element, you need to check the signal’s latest possible transition to a stable value. This is the late event. After this the signal is guaranteed to be stable, and you can be sure it will be stable at sampling time. The late event value is the maximal delay value, or max delay. Timing analysis based on max delays is called max delay analysis. Max delay analysis is also called setup analysis, because it is used to determine whether signals get "set up" (in the sense of "become ready") in time to be sampled correctly by sampling elements.


Early event:
When you want check whether a signal remains stable long enough to be sampled correctly, you need to check the earliest possible time when the signal can become unstable. This is the early event. The early event value is the minimal delay value, or min delay. Timing analysis based on min delays is called min delay analysis. Min delay analysis is also called hold analysis, because it is used to determine whether a signal "holds" its value long enough to be sampled correctly.

Timing Parameters and Concepts

Gate delay

The time between a 50% transition on the input to a 50% transition on the output.
It is also called as propagation delay ‘tp’.
         Tpl2h – time to propagate low on input to high on output
         Tph2l – time to propagate high on input to low on output

 

 

Slope

The time difference between the 20% and 80% transition on a signal. It is also known as trasition delay, wave delay.
·         SlopeL2H – Slope for a low to high transition
·         SlopeH2L – Slope for a high to low transition
Some tools use different definitions
·         Tool reports 0%-100%, measures 10%-90%
·         Most tools use 20%-80%

 

 

 

 

Clock

         Reference clock (virtual clock, system clock) is an ideal periodic signal that serves as a common reference for all timing events. It has the following properties: Rise time, Fall time, Period. Multiple reference clocks with different frequencies may exist in the same design
         Qualified clock is an actual circuit signal with constant relation to some reference clock. Clocks are the controlling signal of sampling/generating elements

What is Static Timing Analysis?

Introduction


            Timing analysis is a method of analyzing and solving timing problems to ensure that the design meets the target frequency. Critical timing information such as critical path delays and margins are extracted using the so called, Static Timing Analysis (STA) tool, where each delay elements are pre- characterized and propagated through the timing graph of the given design. Dynamic simulations for timing analysis is no more useful for quick timing closures as multi-core processors are large in size, for reasons like complexity of designs, spice convergence, menial task of probing critical paths etc., here a new technique is approached to handle STA on analog circuits. Pre-layout timing analysis is carried to fix the timing problems before the layout construction, since changing layout takes more time than changing schematics. Post layout is the final timing analysis with extracted parasitics. It is difficult to calculate setup and hold time violations by running STA on large designs like microprocessors. So it is simple by dividing design in to smaller designs called FUBs (Functional Unit Blocks), and collection of FUBs are called Unit. A FUB represents actual physical hardware units of distinct functionality. A well defined and compact interface exists between FUB and neighboring FUB.
Depending on the design methodologies used, two types of timing analysis methods are commonly used: Static timing analysis and dynamic timing analysis.

Static Timing Analysis

It is a non-simulation approach used to analyze propagation of delays. It computes the worst case path delays by accumulating precharacterized device delays along a given path. it does not require any input vectors to analyze the worst case delays. It allows you to run analyses on large circuits fast, but at the expense of accuracy. STA has produced a reasonably accurate timing result in the pre-silicon design phase and helped the designer to properly optimize their design to meet the given timing specification (e.g. operating frequency). 

Dynamic Timing Analysis

It is a Circuit simulation for obtaining a very accurate timing analysis of a path, using input waveforms and generating output waveforms. It is more accurate, but much slower than static timing analysis. Generally used for analog and small specific circuits. It is not path oriented, if dynamic approach results may not match the expected values, then to solve that we have to bedug the path causing the problem. If the design is large it is difficult to analyze the root cause.

Tuesday 1 March 2011

What is Setup and Hold time of a Flip-Flop?

To guarantee correct data propagation in sequential cells, the data input signal must remain stable for a minimum length of time before the active edge of the clock. This period of time is called the setup time. Setup time is measured as the difference between the clock edge and data edge. The hold time is the minimum length of time the input data signal must remain stable after the active edge of the clock. Hold time is measured same as setup.