Vlsi Concepts
Vlsi Concepts
Home
VLSI Basic STA & Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video Lectures a
More SI
VLSI Concepts
Subscribe To VL
Po
Comments
An online information center for all who have Interest in Semiconductor Industry.
Translate page
Select Langu
Katalon
"Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) Chapter 5: C
Featured Post
Part3b -> Basic Concept of Setup and Hold Violation “Maximum Clock
Part3c -> Practical Examples for Setup and Hold Time / Violation Part4a -> Frequency” for
Part4b -> Delay - Interconnect Delay Models Part4c -> Part 6a -> How to
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 1/
7/31/23, 9:32 PM "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
(basic example)
Videos
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 2/
7/31/23, 9:32 PM "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Home PartVLSI
6b -> Basic
Continue of STA
How to
& solve
SI Setup and Hold &
Extraction Violation
DFM (Advance examples)
Low Power Physical Design Vlsi Interview Questions Video
Part 6c -> Continue of How to solve Setup and Hold Violation (more advance examples)
Lectures VLSI Industry: Insight About Us Recommended Book Papers VLSI
VLVL
Jobs
Its been long time, people are asking about Setup and Hold time blog. Finally time come for that. :) The way
1. They know the definition but don't know the origin or say concept behind Setup and Hold timing.
11,721,
2. They know the formula for calculating setup and hold violation but don't know how this formula come in picture.
3. They become confuse by few of the terminology like capture path delay, launch path delay, previous clock cycle, current clock cycle, data path delay, slew,
setup slew, hold slew, min and max concept, slowest path and fastest path, min and max corner, best and worst case etc during the explanation of Setup and Popular Posts
Hold Timings/Violation.
"Timing Path
I hope I can clarify your confusion. Let me explain this and if you face any problem let me know. Timing Analy
basic (Part 1)
What is Setup and Hold time?
Basic of Timi
Analysis in P
To understand the origin of the Setup and Hold time concepts first understand it with respect to a System as shown in the fig. An Input DIN and external clock Design
CLK are buffered and passes through combinational logic before they reach a synchronous input and a clock input of a D flipflop (positive edge triggered). Now
to capture the data correctly at D flip flop, data should be present at the time of positive edge of clock signal at the C pin ( to know the detail just read basis "Setup and H
: Static Timin
of D flipflop). (STA) basic (
Note: here we are assuming D flip flop is ideal so Zero hold and setup time for this.
"Examples O
and Hold tim
Timing Analy
basic (Part 3
"Setup and H
Violation" : St
Timing Analy
basic (Part 3
10 Ways to fi
and HOLD vi
Static Timing
(STA) Basic (
Delay - "Wire
SetUp and Hold Time of a System Model" : Stati
Analysis (ST
(Part 4c)
There may be only 2 condition.
"Time Borrow
Tpd DIN > Tpd Clk Static Timing
(STA) basic (
For capture the data at the same time when Clock signal (positive clock edge) reaches at pin C, you have to apply the input Data
at pin DIN "Ts(in)=(Tpd DIN) - (Tpd Clk)" time before the positive clock edge at pin CLK. Delay - "Inter
In other word, at DIN pin, Data should be stable "Ts(in)" time before the positive clock edge at CLK pin. Delay Models
Timing Analy
This Time "Ts(in)" is know as Setup time of the System. basic (Part 4
Tpd DIN < Tpd Clk
Maximum Cl
For capture the data at the same time when clock signal (positive clock edge) reaches at pin C, input Data at pin DIN should not Frequency :
change before "Th(in)= (Tpd Clk) - (Tpd DIN)" time. If it will change, positive clock edge at pin C will capture the next data. Timing Analy
basic (Part 5
In other word, at DIN pin, Data should be stable "Th(in)" time after the positive clock edge at CLK pin.
This time "Th(in)" is know as Hold Time of the System.
EDN Feed
From the above condition it looks like that both the condition can't exist at the same time and you are right. But we have to consider few more things in
this. Macro model
engineers sim
Worst case and best case (Max delay and min delay) circuits and s
Because of environment condition or because of PVT, we can do this analysis for the worst case ( max delay) and best case ( min Automate ES
delay) also. protection ve
for complex I
Shortest Path or Longest path ( Min Delay and Max delay)
Formal-base
If combinational logic has multiple paths, the we have to do this analysis for the shortest path ( min delay) and longest path ( max methodology
digital design
delay) also. verification ti
So we can say that above condition can be like this. Getting in sy
UVM sequen
Tpd DIN (max) > Tpd Clk (min)
Get those clo
SetUp time == Tpd DIN (max) - Tpd Clk (min) domains in s
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 3/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Clock path (max, min) = (4.5ns, 4.1ns) Followers
Home
(74 VLSI Basic STA & SI Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
Then Setup time= 5-4.1=0.9ns
Lectures VLSI Industry: Insight About Us Recommended Book Papers VLSI
Jobs
Now similar type of explanation we can give for a D flip flop. There is a combinational logic between C and Q , between D and Q of the Flipflop.
There are different ways for making the D flip flop. Like by JK flipflop, master slave flipflop, Using 2 D type latches etc. Since the internal circuitry is
different for each type of Flipflop, the Setup and Hold time is different for every Flipflop.
Definition:
Setup Time:
Setup time is the minimum amount of time the data signal should be held steady before the clock event so that the data are reliably sampled by the
clock. This applies to synchronous circuits such as the flip-flop.
Or In short I can say that the amount of time the Synchronous input (D) must be stable before the active edge of the Clock. The Time
when input data is available and stable before the clock pulse is applied is called Setup time.
Hold time:
Hold time is the minimum amount of time the data signal should be held steady after the clock event so that the data are reliably sampled. This
applies to synchronous circuits such as the flip-flop.
Or in short I can say that the amount of time the synchronous input (D) must be stable after the active edge of clock. The Time
after clock pulse where data input is held stable is called hold time.
In simple language-
If Setup time is Ts for a flip-flop and if data is not stable before Ts time from active edge of the clock, there is a Setup violation at that flipflop. So if data is
changing in the non-shaded area ( in the above figure) before active clock edge, then it's a Setup violation.
And If hold time is Th for a flip flop and if data is not stable after Th time from active edge of the clock , there is a hold violation at that flipflop. So if data is
changing in the non-shaded area ( in the above figure) after active clock edge, then it's a Hold violation.
How to calculate the setup and hold violation in a design.. please see the next blog.
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 4/1
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Home VLSI Basic STA & SI Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
Jobs
87 comments:
Unknown April 20, 2011 at 5:41 PM
Reply
Thanks for such comments. I will update you once there will be any new post. you can also subscribe to my blog or by twitter account to get a regular update.
Reply
Reply
Reply
Reply
thanks man
Reply
Reply
Hey.. This blog is awesome. I was very confused with setup and hold time. I had to attend NVIDIA interview. Very happy tat i got to know this blog at the right
time. I was able to answer qns on setup and hold time violations. And i got selected.. Thanks a lotttttttttttt :)
Reply
Replies
naveen,
congrts for ur selection...can you tell me wat type of questions do they ask in interview and written and how shud i prepare for that??....
Reply
Hi Naveen,
Thanks for compliment.. and congrats for NVIDIA selection. i am happy for you.
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 5/1
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Hi Anonymous- with respect to negative propagation delay.. I am going to post it in FAQ section. You will find that soon. Drop a mail to my mail id ... I will let
Home VLSI
you Basic
know as soon as I STA & SI
post their. Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
Jobs
hi.. even i too have the same doubt about -ve propagation delay.. send
me also..
voonnasandeep@gmail.com
Reply
Not a single textbook out there explains these things in such an easy to understand manner !!
Brilliant work :)
Reply
jbhjbbhjuh
Reply
Hi when a Setup or Hold time violation happens the flip flop enters into metastable state and the output will be unpredictable. But there is a statement in the section
'Tpd DIN < Tpd CLK' saying that the if there is a hold time violation the next data will be sampled. Isn't the unpredictability of the output in the metastable state the
main problem?
Reply
Replies
Hey AVI that is the actual problem with the hold violation. Both the ways it is true next data will be sampled and data is unpredictable. during one clock
period only one data should be captured and you are expecting the data that is just launched in the previous stage. But due to hold time violation that is
data arriving very quickly the data that should be captured in the next clock will be captured in the present clock and you are unaware of the data that is
captured and you cannot how that will modify your circuit functionality.
Reply
Reply
Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
Reply
Reply
there,
your article on setup and hold time is superb ,finally reached here after searching over the net Reply
Reply
Reply
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 6/1
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
admin , i reaaly vey thankful to u.......i am trying to larn this all the stuffs from past 1 months but got cleared after reading ur blog....u r d best...keep adding
Home VLSI
more Basic
...also add some STA & SI onExtraction
more examples & freq
how to find max DFM of clockLow Power Physicalagain!
in STA.............................thanks Design Vlsi Interview Questions Video
Jobs
i feel very happy to get d concept very clearly. thanks to u for spending time in sharing all this. u r doing a great job especially for students like
me...thank u so much::)
Reply
Reply
Reply
Replies
Hi Siv,
Now if TpdDIN = Tpd Clk -- Means data is not getting proper time to get stable before clock -- so this is the case of Setup Violation for sure.
for hold data should be stable after that (clock pulse)... and data can change only when next data will come (just to replace the previous one).. so if for
every data stream Tpd DIN == Tpd CLK -- then data remain stable for 1 clock pulse in general. And there should not be any hold violation.
In my opinion, if TpdDin = TpdClk Din signal should meet Ts and Th times of internal FF. So as we have ideal FF here Din and Clk can go
simultaneously without violation.
Reply
Replies
there are .. please check the basic knowledge from the previous part of this series.
Sometime later I will post a blog for setup and hold analysis for latches also.
thanq u so much
i AM so curious to know MORE about u, plz tell, r u IIT PROFESSOR?
Reply
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 7/1
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Reply
Home VLSI Basic STA & SI Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
Lectures
First of all, congrats to you. What exactly you wanted to know about me? Please drop me a mail on my mail id.
Reply
Reply
Thanks a lot sir.i read so many ebooks pdfs but nothing has given me this much clarity.can you please explain with different problems so that it will be easy for me
to attend for an interview
Reply
Replies
I will try .. in the mean time please read next 2 parts.. there you will get a lot of other example.
Reply
Reply
Replies
Right Now, there is no info regarding Verilog in my blog. There are plan for doing this .. but not in near future. But you can find a lot of info on other
blogs/website.
Reply
Reply
Your Vlsi,
Your Blog is very useful to me..........,I am a fresher 2011 pass out searching for job in Backend(Vlsi physical design).I have taken training in Vlsi Physical
Design for Eight months if their are any fresher openings you please post in this blog or mail me at raviteja.vlsi@hotmail.com.........................,Really this blog is
very useful to me....,Before knowing this blog i was little confused with setup and hold time calculations but now it is clarified...., Thank You Very Much. ,
D.Raviteja
Reply
Replies
Hi Ravi,
Its very difficult to trace the opining for fresher/experienced people in the VLSI domain right now. So I can't promise you regarding this. But there are
several other sites where you can check and apply also.
Reply
thanks a lot.. this was a very useful article and really cleared away confusions Reply
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 8/1
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Hi,
Home I VLSI
am notBasic
able to clearlySTA & SI the explaination
understand Extraction & DFM
given Low time.
for What is Setup Power Physical
Can you please Design
explain more in detailVlsi Interview
by giving numbersQuestions
along with Video
Lectures
waveforms for Tpd DIN and Tpd CLK.For example::
Reply
superb explanation
Reply
You defined setup and hold time for a system. I want to know how setup and hold time is calculated for a flip flop ? Reply
Replies
flip-flop is also a system.. you can see that I have applied the same concept for D type of flipflop.
Reply
Hi ,
I am a bit confused about the minimum and maximum conditions used for the below conditions. Tpd
DIN (max) > Tpd Clk (min)
SetUp time == Tpd DIN (max) - Tpd Clk (min)
Tpd DIN (min) < Tpd Clk (max)
Hold time == Tpd Clk (max) - Tpd DIN (min)
Kindly help to elucidate the reason for the selection of min and max values for the setup and hold times. Reply
This blog is simply mind blowing...all compact and easy to understand sections...thanx a lot dude..!! Reply
Thanks for your explanation. Before your notes, I was in a state of lack of clarity of setup and hold time, I know their definitions but I was unable to apply them
to the circuits. Now I got the clarity. I have a doubt. Why people always hide things of their knowledge. They always confuse us by saying definitions. They never say
any thing clearly like u. Thank you one more time. I hope u should continue this block for us.
Reply
Reply
Hi Thanks for the concepts you have explained. It is awesome !!! I had an interview question like this: Which is more important - Set up time or hold time?
Reply
Replies
Hi,
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 9/1
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 10/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Please refer 6a,6b and 6c and also 5a and 5b. I am sure you will get the ans.
Home VLSI Basic
See I can ansSTA
here ..&but
SImy intension
Extraction
is that u& DFMfigure out
should Low yourPower
own with the Physical Design
help of basics. :) Still u Vlsi Interview Questions Video
Lectures
didn't get the ans.. ping me again.
And If hold time is Th for a flip flop and if data is not stable ***** Before ***** Th time from active edge of the clock , there is a hold violation at that flipflop.
So if data is changing in the non-shaded area ( in the above figure) after active clock edge, then it's a Hold violation.
Reply
Reply
Finally i got what exactley setup and hold time .Thanks a lott Sir
Reply
Thanks a lot for the blog itz very needfull especially for beginners. Each and every concept explained in depth with different examples. Reply
Thanks very much,this stuff is very good for setup and hold time concept Reply
it was really helpful...topics were broadly covered and well explained..thnx Reply
Blogs like vlsi-expert, digitalelectronics, etc. are all owned and updated by Indians. You guys make us all so very proud!
Reply
Hi! I must congratulate you for this wonderful blog that you've been maintaining, and must say that it's been of much help. However, I
The only difference between what I think and what's present in the above article is the sign of the result, but even that is quite significant!
In my equation, when the min. Clock time is larger than the max. Data time, we get a +ve Set-up time, like should usually be. Your equation, though yields a +ve
Set-up time when the max. Data time is larger than the min. Clock time, which instead looks like Set-up violation!
I will be extremely grateful to you if you could clarify this point to me and remove my confusion. I might have missed some point here. I'm sure many others must
have had this doubt, so your reply to this comment could benefit many, including me!
Reply
Replies
await your valuable comment here. Intezaar rahegaa aapke beshkeemati tippanee kaa! :)
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 11/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
VLSI Expert
Home VLSI Basic STA &February
SI 24, 2014 at 1:41 PM
Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
Jobs
I don't get it. If T clock min is more than T data max, time the clock pulse takes to travel is always more than the time data takes to transfer. That means,
clock will always reach after the data is received. So the data should hold it's stability until clock is reached. How can this time be called setup time?
To get a positive setup time from this equation,
T(set-up)[max] = T(clock)[min] - T(data)[max]
is not possible since if clock's min delay is more than data's max delay, it will be a case of Hold time and not setup time. Please correct me
where I am wrong.
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 12/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 13/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Anonymous September 5, 2014 at 8:27 PM
Home VLSI Basic STA & SI Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
This comment has been removed by a blog administrator.
Lectures VLSI Industry: Insight About Us Recommended Book Papers VLSI
Reply
Jobs
Reply
Reply
Dear sir
please that set up time and hold time is for i/p or o/p or both or is set up is for i/p or hold is for o/p Reply
Hi , It was really helpful, do you have any email address where i can send question about this material? I have some doubts. Reply
Reply
Reply
Reply
Sir, could you please explain the concept of negative setup and hold times ? Reply
Enter Comment
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 14/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 15/
7/31/23, 9:32 "Setup and Hold Time" : Static Timing Analysis (STA) basic (Part 3a) |VLSI Concepts
Home VLSI Basic STA & SI Extraction & DFM Low Power Physical Design Vlsi Interview Questions Video
Lectures
https://www.vlsi-expert.com/2011/04/static-timing-analysis-sta-basic-part3a.html 16/