Showing posts with label IC Design. Show all posts
Showing posts with label IC Design. Show all posts

Thursday, May 24, 2007

Setup and speed of circuit

Thanks to my friend HL, I'm able to get this explanation into writing :):

KKCheong says:
the d'' is the data at the second register
KKCheong says:
clk' is the clock at the second register
KKCheong says:
You need to capture the data A at the second clock
KKCheong says:
for register to register, first register use the first clock. second register use the second clock
KKCheong says:
And u can see, setup time is how long the data is stable before the clock active
KKCheong says:
in this case, the real setup time is actually
KKCheong says:
--->


KKCheong says:
so, real setup time = clock period - 6.5ns
KKCheong says:
if you barely fail setup time, means, setup time = 0
KKCheong says:
real setup time = 0 = clock period - 6.5ns
KKCheong says:
clock period = 6.5ns when setup fail
KKCheong says:
to make it pass setup time, real setup > 0
KKCheong says:
clock period - 6.5ns > 0
KKCheong says:
clock period > 6.5ns

Wednesday, April 25, 2007

Hold time and Setup time (2)

So what is the real usage of Hold time and Setup Time for pin to register?

Well, I did explain in the previous post. But in detail, the Hold time is for customer who want to connect synchronously to your chip. So, if you have positive hold time for your pin to register, customer need to make sure he/she delayed the data path long enough for it to work. In this case, setup time is not important.

But how about when the customer want to connect asynchronously? Then setup time will be important. When you spec customer for 8ns setup time, you actually give yourself 8ns margin to play with. Meaning, you can delay your data path for less than 8ns before the setup time failed. How come you have that 8ns? Because based on the spec, customer will send the data first and then only send the clock after 8ns. So in your data path, you have 8ns to play around.

That's all for now kids. Stay tune!

Previous blog:
Hold time and Setup Time
Follow up blog:
Setup and speed of circuit

Saturday, April 21, 2007

Hold time and Setup Time

One thing that bewildered me as an IC Designer is that I can't really figure out what is setup and hold time significance and its impact using timing diagram. I hope this post will clear up everything for future junior IC Designer.

Setup and Hold time is timing constraint for register. Setup time relates to speed of the system. Hold time relates to functionality of the of the system. There's two types of setup and hold. First is setup and hold for pin to register. Second type is setup and hold for register to register.

For pin to register setup and hold time, you must send the data first and then only send the clock to clock the data at the register. This is called setup time. If the data sheet said it needs minimum 8ns setup time, make sure you delay the clock for 8ns compare to data. And the data needs to be hold long enough after the clock. This is called hold time.

For register to register setup and hold time, one thing we need to keep in mind is data is clocked by the first clock for the first register. Then this data output from the first register must be clocked by the second clock for the second register. To summarize, data go through 2 register needs two clock cycle. To make sure this happen, data must be slow down compare to clock. If you have data path faster than clock path, means, the current clock (first clock cycle) can still clock the output from first register that is clocked by the first clock. This is called hold time.

Conclusion is, pin to register, Setup time is more important. As for register to register, hold time is more important. This is according to me. I'll talk more about this in the next post with diagram and stuff. :)

Please read the follow up:
Hold time and Setup time (2)
Setup and speed of circuit