This is a good question about static timing analysis (STA), specifically about setup timing and clock skew. Let me break this down carefully.
Setup Slack Definition
Setup slack is calculated as:
Setup Slack = Capture_Clock_Time - Arrival_Time - Setup_Time
Or more commonly written as:
Setup Slack = (Tc - Tsu) - Tdata
Where:
- Tc = Required time (when clock arrives at capture flop)
- Tsu = Setup time requirement
- Tdata = Data arrival time at the capture flop input
This can also be written as:
Setup Slack = Required_Time - Arrival_Time
Where:
- Required_Time = Capture_Clock_Time - Setup_Time
- Arrival_Time = Launch_Clock_Time + Combinational_Delay
Clock Skew Impact on Setup
Clock skew is the difference in clock arrival times at different points in the circuit.
Positive clock skew typically means:
- The capture clock arrives LATER than the launch clock
- Or put another way, the clock at the capture flop lags behind the clock at the launch flop
If capture clock arrives late (positive skew):
- This REDUCES the Required_Time for setup checking
- Because the data has LESS time to arrive before the capture edge
- This means the data path has less slack
- Therefore, positive skew HURTS setup
Wait, let me reconsider. The question asks: "If capture clock arrives late with positive skew, does it help or hurt setup?"
The statement given is: "Helps setup, hurts hold."
Let me verify this more carefully.
Setup Check Details:
The setup check ensures that data arrives before the clock edge at the capture flop.
Capture_Time is when the data needs to arrive. In STA, this is typically:
-
Capture_Time = Launch_Clock_Arrival + Clock_Period - Setup_Time
-
When the capture clock arrives late, the actual capture edge shifts later, which extends the window available for data arrival. This gives the data path more time to propagate, improving setup slack.
Hold Check Details:
The hold check ensures that data doesn't change before it's captured. When the capture clock arrives late, the capture edge itself occurs later, which means the data from the current cycle has less time to stabilize before being captured. This tightens the hold constraint.
More precisely, a late capture clock reduces the interval between when data is captured and when the next launch edge occurs (since the launch edge timing remains fixed). This compressed window between capture and the subsequent launch makes it harder to satisfy hold requirements, so positive skew actually hurts hold timing. wait, I need to reconsider the hold constraint more carefully.
Hold checks that the same cycle's data remains stable after capture. When the capture clock arrives at time Tc, the data from the launch clock at time Tl must have propagated through combinational logic and arrived at the capture flop. For hold to pass, this data needs to stay valid until after the capture edge samples it.
The fundamental requirement is that data launched at Tl, delayed through combinational logic, must arrive before the capture edge at Tc and remain stable through the hold window. If capture clock skew is positive and delays the capture edge, it actually increases the time available for data to settle, which would help hold timing rather than hurt it.
But this seems backwards from what I know about positive skew hurting hold. Let me reconsider whether my skew definition is inverted—perhaps positive skew means the capture clock arrives earlier relative to launch, not later.
Actually, working through the hold constraint directly: if the capture clock is late, old data from the previous cycle must remain stable longer before being replaced. This creates a tighter hold requirement. Meanwhile, setup becomes easier because there's more time for new data to arrive before the late capture edge. So positive skew—where capture lags launch—helps setup but hurts hold, which aligns with the standard rule. This helps setup ✓
For hold slack, the calculation is:
Hold_Slack = (Capture_Clock_Time) - Hold_Time - Data_Arrival_Time
When both flip-flops are in the same cycle:
Hold_Slack = (Launch_Clock_Time + Skew_capture) - Hold_Time -
(Launch_Clock_Time + Combinational_Delay)
= Skew_capture - Hold_Time - Combinational_Delay
A positive skew_capture subtracts from the first term, which actually hurts hold timing. Let me reconsider the model more carefully.
Using a clearer framework: data launches from the launch flip-flop at time Tl and arrives at the capture flip-flop at time Td = Tl + Combinational_Delay.
The capture clock arrives at time Tc. For hold to pass, data must remain stable after the capture event, so I need Td ≥ Tc - Hold_Time. This gives Hold_Slack = Td + Hold_Time - Tc, or equivalently Hold_Slack = (Tl + Comb_Delay + Hold_Time) - Tc. When the capture clock is delayed (larger Tc), hold slack decreases, confirming that positive skew—where the capture clock arrives later—degrades hold timing.
Now expressing this with actual clock arrival times: if the launch clock reaches its flop at CL and the capture clock reaches its flop at CC (where CC > CL for positive skew), then data becomes available at CL + launch_delay + comb_logic_delay, while capture happens at CC + capture_delay.
For setup timing, data must arrive before the capture event: the slack equation simplifies to (CC - CL) - Tsu - launch_delay. Positive skew increases this slack, helping setup. For hold, data must remain stable through CC + capture_delay, so slack becomes (CL + launch_delay + comb_logic_delay + Th) - CC. As CC grows relative to CL, this slack shrinks, making hold increasingly difficult. Capture_Clock_Time + Combinational_Delay - Hold_Time
So for hold slack, when CC > CL (positive skew), the Capture_Clock_Time increases, which decreases the hold slack—this hurts hold timing. That confirms the relationship.
Let me verify both formulas are consistent with how skew affects them:
- Setup: Slack decreases when CC increases (bad) ✓
- Hold: Slack decreases when CC increases (bad) ✓
Wait, that means positive skew hurts both? That doesn't match the typical understanding. Let me reconsider what "positive skew" means in this context and whether I'm applying it correctly to the launch versus capture clock. The new data from the current launch must not arrive too soon—it needs to respect the hold time window. The capture edge occurs at T_capture_clock, and the previous launch's data should remain stable until T_capture_clock + Hold_time. Since new data launches at T_launch_clock + T_period and arrives at T_launch_clock + T_period + T_comb, I need to ensure this doesn't violate the hold requirement: T_launch_clock + T_period + T_comb ≥ T_capture_clock + Hold_time.
This gets complicated when mixing cycles, so I should use the standard STA formulation instead. For setup, the slack is (Tc - TSU) - Td, where Tc is the capture clock edge time, TSU is setup time, and Td is data arrival time. Hold timing follows a similar structure but considers the same cycle relationship.
When capture clock skew is introduced—where positive skew means the capture clock arrives late—it creates opposing effects on setup and hold. If Tc_skew > 0, the actual capture time becomes T_capture_clock + Tc_skew. This increases setup slack since the capture edge is delayed, giving data more time to settle. However, it decreases hold slack because the data must remain stable for longer after the delayed capture edge. This confirms that positive capture skew helps setup but hurts hold timing.
Setup Slack in Static Timing Analysis
Setup Slack Calculation
Setup Slack is calculated as:
Setup Slack=(Capture Clock Time−TSU)−T
Or equivalently:
Setup Slack=Required Time−Arrival Time
Where:
- Required Time = Capture clock edge − Setup time constraint
- Arrival Time = Launch clock + Combinational delay
- TSU = Setup time requirement
Practical Form:
Setup Slack=(Tclk,capture−Tclk,launch
Clock Skew Impact: Positive Capture Skew
Your statement is correct:
✅ Helps Setup
- Positive skew = Capture clock arrives LATE
- Later capture edge → WIDER window for data arrival
- Slack = (T_capture + Skew_positive - T_SU) - T_data
- More positive slack → easier to meet setup
✅ Hurts Hold
- Hold Slack = T_data + T_H − (T_capture + Skew_positive)
- Later capture edge → LESS time for previous data to remain stable
- Later capture → early next-cycle data arrives before hold time elapses
- More negative slack → harder to meet hold
Quick Reference
| Skew Type | Setup | Hold | Effect |
|---|
| +Capture skew (late) | ✅ Helps | ❌ Hurts | Divergent |
| −Capture skew (early) | ❌ Hurts | ✅ Helps | Divergent |
| +Launch skew (late) | ❌ Hurts | ✅ Helps | Divergent |
Key insight: Setup and hold have opposite sensitivity to skew—this creates the skew-balancing challenge in design.