Hardware interview practice
Maximum clock frequency from a setup path
For each setup path, positive skew means the capture clock arrives after the launch clock. Calculate the minimum clock period and maximum frequency using the given picosecond delays and uncertainty.
Starting point
Question code
Tmin = Tcq + Tcomb + Tsetup + uncertainty - capture_skew
Fmax_GHz = 1000 / Tmin_ps
P1 = (80, 620, 100, 60, 40)
P2 = (70, 500, 80, 50, 0)
P3 = (90, 700, 110, 40, -30)
// tuple order: Tcq,Tcomb,Tsetup,uncertainty,capture_skewReviewed example
Work through one case
Input
P3: Tcq=90, Tcomb=700, Tsetup=110, uncertainty=40, capture_skew=-30 psExpected output
Tmin=970 ps; Fmax=1.031 GHzSubtracting -30 adds 30 ps to the requirement: 90+700+110+40+30=970 ps.
What to cover
Requirements
- Apply the formula independently to each path.
- Treat negative capture skew as additional required period because the formula subtracts it.
- Keep every delay in picoseconds and report frequency in GHz.
- Report period as integer picoseconds and frequency rounded to three decimals.
