Timing analysis and CDC
In a circuit that stops the clock with a two-input AND gate of the clock and an enable signal, what does the STA clock gating check verify?
- AThat the enable signal changes at the same time as the rising clock edge
- BThat the enable signal changes only while the clock is 1
- CThat the enable signal does not change while the clock is 1 and finishes changing while the clock is 0
Show answer and explanation
Answer: C. That the enable signal does not change while the clock is 1 and finishes changing while the clock is 0
With an AND gate, if the enable changes while the clock is 1, the output clock can be cut short or a short pulse (glitch) can appear. STA therefore checks that the enable is stable before the rising clock edge (gating setup) and held until after the falling edge (gating hold). With a 2.0 ns period and 50% duty cycle, enable changes must fit within the 1.0 ns from the falling edge to the next rising edge. Using a clock gating cell with a built-in latch makes this easier to satisfy.