Set-up time in digital circuits

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
likephysics
Messages
638
Reaction score
4
Why should the input in any logic be present before the clock?
Is the setup time related to clock rise time?
 
Engineering news on Phys.org
Precisely. You want the inputs to be stable before a clock transition in order to ensure that you're reading the right value, and not the previous value, or possibly even worse, some transition value between the two. Why do they say that a value should be stable for X nanoseconds before the clock? Probably because of how things are arranged internally and how they propagate. That or they ran some tests and that was the minimum value that did not result in errors.
 
MATLABdude said:
Precisely. You want the inputs to be stable before a clock transition in order to ensure that you're reading the right value, and not the previous value, or possibly even worse, some transition value between the two. Why do they say that a value should be stable for X nanoseconds before the clock? Probably because of how things are arranged internally and how they propagate. That or they ran some tests and that was the minimum value that did not result in errors.

ok. thanks. A year ago, I was trying to use the same signal for clock and data in, it worked in simulator but did not work in the ckt. I had to delay the clock.

The rise time at the data in and the clock must be different. If they are same, my ckt should have worked.
 
It's actually not generally related to the clock rise time, because gates are designed to very rapidly change state at a specific trigger voltage. Whether you arrive at that voltage quickly or slowly, the change in state happens with the same quickness.

The setup time is for charging the capacitance of the transistors inside the gate. Even after maximal voltage has been attained at the gate's input, the transistor gates, junction capacitances, etc. within still must be charged. The amount of time needed to guarantee that the gate reacts properly is called the setup time.

Quite often, gates can be specifically designed to have zero setup time.

- Warren