Setup and Hold Around a Sampling Edge
Setup and hold describe required stable input intervals before and after a storage element's sampling event.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Read a conceptual timeline
Suppose a data input must settle two time units before an edge and stay stable one unit after it. A transition half a unit before the edge violates setup. Exactly which units and constraints are real are device-specific. See latch and flip-flop timing.
Find the preceding logic delay
If the source updates at one edge and the receiver samples at the next, intermediate gates consume some available interval. A ripple carry path can be a path whose settling delay matters.[1]
Locate the entire interval of required stability
For an illustrative capture at 20 nanoseconds, suppose setup is 2 nanoseconds and hold is 1. Input data must remain stable through the required window from 18 to 21. An arrival at 19 violates setup, and a transition at 20.5 violates hold. See edge-triggered sampling.
Sample edge: 20 ns
Required stability starts: 18 ns
Required stability ends: 21 ns
Transitions at 17 and 22 alone satisfy this example
Account for the consequences of a violation
The captured result may fail to match a simple digital expectation and can become metastable. Timing budgets must also consider delays, clock relationships and uncertainty in real devices. Do not infer guarantees from the nominal edge alone.