Timing analysis and CDC
With a 2.0 ns clock, a path runs from a flip-flop that launches data on the rising edge at time 0 to a latch that opens (becomes transparent) at 1.0 ns and closes at 2.0 ns. If the data arrives at the latch at 1.4 ns, how much time has been borrowed at this latch (time borrowing)?
- A0.6 ns
- B0.4 ns
- C1.4 ns
Show answer and explanation
Answer: B. 0.4 ns
A latch passes its input straight through while open, so data arriving after the opening edge is still captured correctly as long as it arrives before the latch closes. The 1.4 − 1.0 = 0.4 ns used beyond the opening edge (1.0 ns) is the borrowed time, and the time available to the next stage is reduced by that amount. 0.6 ns is the time remaining until closing, and 1.4 ns is the arrival time itself. Borrowing is limited to the closing edge minus the latch setup time.