Skip to content

Computer Architecture: formula sheet and flashcards

All the formulas of Computer Architecture in one page, topic by topic, from the lessons of the course; print it or review it with flashcards.

Syllabus and lessons Handbook (PDF) Handbook for notes (PDF) Exam exercises 7 formulas

Instruction-level parallelism and dependences

The performance equation with stalls

    \[ CPI = CPI_{ideal} + \sum_k f_k\,p_k \]

Branch prediction

The cost of a misprediction

    \[ \Delta CPI = f_{branch}\cdot m\cdot p \]

Cache hierarchies

The multi-level hierarchy

    \[ AMAT = t_1 + m_1\big(t_2 + m_2(t_3 + m_3\,t_{mem})\big) \]

    \[ AMAT = 1 + 0.05\big(4 + 0.3(12 + 0.4\cdot 80)\big) = 1 + 0.05\cdot 17.2 \approx 1.86\ \text{ns} \]

SIMD, GPUs and roofline

The roofline model

    \[ I = \frac{W}{Q}\quad\left[\frac{\text{operations}}{\text{byte}}\right] \]

    \[ P \le \min\left(P_{max},\ B\cdot I\right) \]

Energy and power

Dynamic power

    \[ P_{dyn} = \alpha\,C\,V^2 f \]