NCEES PE Computer Engineering Reference Handbook

CPU Amdahl's Law, Cache AMAT & Setup/Hold Timing

Governing Equation

Soverall=1(1−f)+f/S,AMAT=h1+m1(h2+m2⋅MP),Tclk,min≥tc−q+tcomb+tsetup−tskewS_{\text{overall}} = \frac{1}{(1 - f) + f/S}, \quad \text{AMAT} = h_1 + m_1(h_2 + m_2 \cdot MP), \quad T_{\text{clk,min}} \ge t_{c-q} + t_{\text{comb}} + t_{\text{setup}} - t_{\text{skew}}

Setup checks compare longest combinational delay against clock period; hold checks compare shortest combinational delay against t_hold + t_skew and are independent of clock frequency.

Variables & Consistent Units

SymbolQuantityUSCSSI
AMATAverage memory access timecycles or nscycles or ns
T_clk,minMinimum clock period for setup timing closurensns

Worked Numerical Example

L1 hit time = 1 cycle (miss rate 5%), L2 hit time = 10 cycles (local miss rate 20%), memory penalty = 100 cycles. Find AMAT.

AMAT = 1 + 0.05*(10 + 0.20*100) = 1 + 0.05*30 = 2.50 cycles.

Final Answer: 2.50 cycles

Common FE & PE Exam Distractor Traps

  • Multiplying global miss rate by memory penalty directly instead of conditional local miss rate.
  • Including clock period in hold-time slack equations.

Practice This Concept in Full Timed Sets & Excel

  • Form A (80-Question CBT)
  • 80 worked problems · 60 typeset pages
  • Complete Bundle (Employer Edition)
  • 160 worked problems · 118 typeset pages
  • 6-Sheet Unlocked Excel Workbook Pack
  • 6 unlocked Excel sheets · 147 live formulas

Tested on: PE Electrical: Computer Engineering · FE Electrical and Computer