## Set-up time in digital circuits

Why should the input in any logic be present before the clock?
Is the setup time related to clock rise time?

 PhysOrg.com engineering news on PhysOrg.com >> Researchers use light projector and single-pixel detectors to create 3-D images>> GPS solution provides 3-minute tsunami alerts>> Single-pixel power: Scientists make 3-D images without a camera
 Blog Entries: 1 Recognitions: Science Advisor 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.

 Quote by MATLABdude 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.

Recognitions:
Gold Member
Staff Emeritus

## Set-up time in digital circuits

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