Showing posts with label static timing analysis. Show all posts
Showing posts with label static timing analysis. Show all posts

STA



by kamalnadh


STA:-
         It is a method to determine if the circuit meets timing constraints without simulation.It provides faster and simple way of checking and analyzing all the timing paths in the design for any timing violations.

  Advantages:-
  •  Speed.
  •  Exhaustive timing coverage.
  •  Capacity to handle full chip. 
  •  Vector simulation is not required.
Disadvantages:-
  •  It can report false errors.
  •  It is pessimistic.
  •  It is not suitable for asynchronous circuits.
  •  It can't detect errors related to logical operation.
Inputs of STA:-
  •   Netlist
  •  .lib
  •   Spef file
  •  .SDC(consrtaints)

Setup:-
         It is the The minimum time required for the data to be stable before the clock edge.
                                                  Fig:- Setup

Explanation:-
            Here we are considering two flip flops with same clock pulse.In above fig ff 1 sows the clock pulse of flip flop 1 and ff 2 shows the clock pulse of flip flop 2.For setup we should consider data path.The data is launched at ff 1 and captured at ff 2. The data is launched at rising edge of ff 1 and it should be captured before the next rising edge of the ff 2 clock.If the data is captured before the next rising edge then the time is beneficial.If the data is captured after the next rising edge then violations will occur these are called setup violations.
                  In simple words the data should capture with in full cycle.
                     
                   Setup slack = Required time – Arrival time 


Hold:-
                
          The minimum time required for the data to be stable after the clock edge.    
                                            Fig:- Hold

Explanation:-
                         Here we are considering two flip flops with same clock pulse.In above fig ff 1 sows the clock pulse of flip flop 1.and ff 2 shows the clock pulse of flip flop 2.For hold we are considering clock path.Here the data is launched and captured at the same edge.If the data is captured after the clock edge of the ff 2 then the time is benefited.If the data is captured before the clock edge of the ff 2 then violations will occur.These are called hold violations.

               In simple words the data should launch and capture at the same edge of the clocks.

                           Hold slack = Arrival time – Required time

Data paths in STA:-
      1.Input port to register
      2.Register to register
      3.Register to output
      4.Input port to output port


Timing constraints:-

1.False path:- It specifies the logic path.In below fig when enable is 0 the output is 8( from first block 5  is active and from second block 3 is active 5+3=8) if we did't specifies the logic path tool will take wrong path like (5+5 or 3+3).
2. Multi cycle path:- It specifies the no of clock cycles required to propagate data from start to end of the path.




In above fig 2 cycles are used to propagate the data.
3.Min/Max delay:- It over ride the default setup and hold constraints with specific max and min time values

Latency (or) clock network delay (or) insertion delay:-
               It is the time taken by the clock to reach the clock pin from the clock source.It is divided in to two types.Clock source latency and clock network latency.


           Here from clock source to definition pin is the clock source latency.From the clock definition pin to clock pin of the flip flop 2 is the clock network latency.

Cell delay (or) propagation delay:-
         cell delay is the amount of delay from input to output of of a logic gate in a path.

Net delay:-
          It is the amount of the delay fro the output of cell to the input of next cell in the timing path.It is caused by the parasitic capacitance of the interconnection between two cells,combined with the net resistance and the limited drive strength of driving cell.

Drive strength:-
           It is the capacity of the cell to drive a value to the cell connected to it's output.Small stranded cell have small capacitance and vice versa.It is easier to drive a small cell than large.

Transition delay (or) slope (or) wave delay (or) slew:-
            Time taken to a signal to reach from 10% of vdd to 90% of vdd is called transition delay. 



Clock uncertainty:-
           It is the deviation of the actual arrival time of the clock edge with respect to ideal arrival time.The deviation happens mainly due to the jitter and noise.


In the fig above clock is normal.below clock is deviation of arrival time from it's ideal position.

Clock gating:-
       It is the popular Technic used in many synchronous circuits foe reducing dynamic power dissipation.It saves power by adding more logic to a circuit to prune the clock tree.

OCV (on chip variation):-
          
         The delay values of IC will varies in different conditions like changing in processor,voltage,temperature(PVT).The delay value of IC in cold weather is different and in hot weather is different.In cold weather the metals in ic will shrink.In hot weather the metal will expand so the delay will increase.To over come this effect flat derate(delay)  is applied in the circuit.
                    In simple words OCV is a technique in this flat derate is applied to make faster path more fast and slower path more slow.Delays varies across a single die due to PVT(processor,voltage,temperature) .This need to be modeled by scaling the coefficients.


CRPR (clock re convergence pessimism removal):-   

            In this concept we removes the pessimism and derate to the common path.Generally we add the delay to every buffer in the process of OCV.But adding more delay is also effect the speed of the chip and it may cause violations to over come this we are removing the delay to the common path in the process of CRPR.
               In simple words  It can be used to remove the pessimism and penalty by using common cell for both launch and capture flip flop.

Derating:-
           Timing derating factors models the effects of varying operating conditions by adjusting the delay values calculated for the individual timing arc of a block.

PVT operating conditions:-
          PVT is to model inter chip variations. OCV is to model intra chip variations.
Process:- If the processor length is increases the delay also increases
Voltage:- If voltage is increases delay will reduces.
Temperature:-If temperature increases delay will increases.




Libraries in STA:-
1.Link lib:- It provides reference path
2.Target lib:-It is used for optimization
3.Symbolic lib:-It having symbols of cells(gates)
4.synthetic lib:- AOI and OAI combinations.
5.Design ware lib:-Provides the connectivity port.
6.physical lib:-It have shape of cells.

Skew:-
    Difference between the two clock network delays is called skew.types of skews are given below.
Useful skew:-If the clock skew is intentionally added to meet the timing or reduce the violations this is called useful skew.
Local skew:-It is the difference in the arrival of clock signal at the clock pin of related flip flops.
Global skew:-It is the difference in the arrival of clock signal at the clock pin of non-related flip flops.

Some definitions:-
Jitter:- Deviation of clock edge from it's ideal position.

Arrival time
:-It is the time required for data travel through the      data path.

Required time:-It is the time required for clock travel through        the clock path.

Recovery time:- It is the minimum time that an asynchronous control i/p pin must be stable after being deserted and before the next clock transition.

Removal time:- It is the minimum time that an asynchronous control input pin must be stable before being deserted and after the previous clock transition.

STA basic questions and answers




    by Kamalnadh

Q 1. what is STA?
A:  It is a method to determine  the timing constrains of a circuit without simulations.

Q 2. What is setup time?
A: The minimum time required for the data to be stable before the clock edge.

Q 3. What is hold time?
A: The minimum time required for the data to be stable after the clock edge.

Q 4. What is arrival time?
A: This is the time required for data travel through data path.

Q 5. What is required time?
A: It is the time taken for the clock to travel through the clock path.

Q 6. What is slack?
A: It is the difference between the required time and arrival time.
              Slack = Required time­­ - Arrival time
             Setup slack = Required time – Arrival time
             Hold slack = Arrival time – Required time


Q 7.What are the data paths in STA?
A: a) Input port to register.
b) Register to register.
c) Register to output port.
d) Input port to output port.

Q 8. What are the timing constraints (or)exceptions?
 A: a) False path:- It specifies the logic path.
b) multi cycle path:- It specifies the no.of  clock cycles required to propagate data from the start to the end of the path.
c)min/max delay:- It over ride the default setup and hold constraints with specific max &min time values.

Q 9. What is latency (or) clock network delay (or) insertion delay?
A: It is the total delay that a clock signal travels from clock source to clock pin of the flip flop.

Q 10.  What is clock skew?
A: It is the instantaneous difference between the two clock network delays.

Q 11. What is uncertainty?
A: Deviation of clock edge from it’s ideal position.it is caused due to jitters.

Q 12. What is cell delay (or) propagation delay?
A: It is the amount of delay from input to output in a logic path.

Q 13. What is net delay?
A: It is the amount of delay from the output of the cell to the input of the next cell in the timing path.

Q 14. What is drive strength?
A: It is the relative capability to charge/discharge the capacitance present at it’s output (or) It is the capacity of a cell to drive a value to the cell connected to it’s output.It is easy to drive small cell than large.

Q 15. What is clock gating?
A: It is a popular technique used in many synchronous circuits for reducing dynamic power dissipation.It saves power by adding more logic to a circuit to prune the clock tree. 

Q 16. What is OCV (on chip variation)?
A: Flate derate is applied  to make fast path more fast & slow path more slow.Delay vary across a single die due to P,V,T .this to be modeled by scaling the coefficients. 

Q 17. Why we need STA?
A: Sta provides  faster & simpler way of checking & analyzing all the timing parts in the design for any timing violations.

Q 18. What is global skew?
A: It is the difference in the arrival of clock signal at the clock pin of non related flip flops.

Q 19. What is useful skew? 
A: If the clock skew is intentionally added to meet timing then it is called useful skew.

Q 20. What is local skew?
A: It is the difference in the arrival of clock signal at the clock pin of related flip flops.

Q 21. What is derating?
A: Timing derating factor model the effects of varying operating conditions by adjusting the delay values calculated for the individual timing arc of a block.

Q 22. What is CRPR (clock re convergence pessimism removal)?


A: It can be used to remove this pessimism &remove penalty by using the common cell for both launch &capture flip flop.

Q 23. What is recovery time?
A: It is the minimum time that an asynchronous control input pin must be stable after being deserted & before the next clock transition.

Q 24. What is removal time?
A:  It is the minimum time that the asynchronous control input pin must be stable before being deserted & after the previous clock transition.

Q 25. What is the minimum clock pulse width?
A: The amount of time after rising edge of a clock that the clock signal of a clocked device must remain stable.

Q 26. What are the advantages of STA?
A: a) Speed is more.
b) Capacity to handle full chip.
c) Exhaustive timing coverage.
d) Vectors are not required.
e) Suitable for large designs.

Q 27. What are the disadvantages of STA?
A: a) Results are pessimistic .
b) Must define timing requirements/exceptions.
c) Difficulty in handling asynchronous designs.

Q 28. What are the libraries in STA?
A: a) Link lib:- it is a reference path.
b) Target lib:- it is used for optimization.
c) Symbolic lib:- it having symbols of cells(gates).
d) Synthetic lib:- AOI ,OAI combinations.
e) Design ware lib:- provides the connectivity path.
f) Physical lib:- it have shape of cell.



Q 29. What is DRC (design rule check)?
A: It is the area of electronic design automation that determines whether the physical layout of a particular chip layout satisfy a series of recommended parameters called rules.

Q30. What are the types of DRC’s?
A: a) Logical DRC's:- max transition, max capacitance,max fan out.
b) Physical DRC's:- short, open,spacing rules,overlap.

Q 31. What is LVS (layout versus schematic)?
A: LVS is another major check in the physical verification stage.Here you are verifying that whether a particular IC layout correspond to the original schematic or circuit diagram of design.

Q 32. What is cross talk?
A: It is the undesirable electrical interaction between two or more physical adjust nets due to the capacitance cross coupling.

Q 33. What is wire load model?
 A: It is the synthesis phase to account for the physical delay.It contains a lookup table that gives wire resistance ,wire capacitance and the area per unit length.That can be interpolated from the fanout.

Q 34.What is virtual clock?
A: It will help to reduce the timing delay of overall operation.It is the clock which is logically not connected to any port of the design and physically doesn’t exist.It is during optimization.

Q 35.Is zero skew is possible?
A: it is not possible because of all flip flops are not getting the same clock.

Q 36. How to fix setup and hold violations?
A: Fixing setup:-
  • Reduce the amount of buffers in the path.
  • Replace buffer with 2 inverters.
  • Change HVT cells to SVT/LVT cells.
  • Increase the drive strength.
  • Insert repeaters.
  • Adjusting cell position in layout.
 Fixing hold:-
  • By adding delay in the path.
  • Decreasing the size of certain cells in the data path.

Q 37. What is MMMC (multi mode multi corner)?

A: A view is a combination of a mode & corner that is required for a particular timing check such as setup and hold.

Q 38. What is mode and corner?
A: Mode:- it is a set of clocks,supply voltage,timing constraints and library.it also have sdf.
Corner:- it is defined as a set of libraries characterized for process,voltage, temperature variations.

Q 39. How to minimize the skew?
A: a) Buffering the clock.
     b) Add delay in data path.
     c) Clock reversing.
                





        




PD interview questions and answers - part 3

by kamalnadh 1. What are the types of operating modes? A. a) Test mode.      b) Scan mode.      c) Reset mode.      d) Functional mo...