CPU Cache Address Slicer

Slice any 32-bit memory address into Tag, Set Index, and Block Offset bits. Built for Number Systems & Architecture, this workbench updates the 32-bit cache slicer and scalar readouts in real time as parameters change.

Technical Reference & Equations

  • IEEE 754 Single-Precision Value: (-1)^s \times (1.\text{fraction})_2 \times 2^{E - 127} (1 sign bit, 8 biased exponent bits (bias 127), 23 mantissa fraction bits.)
  • Set-Associative Cache Address Split: \text{Offset} = \log_2(B), \quad \text{Index} = \log_2\left(\frac{C}{B \cdot W}\right), \quad \text{Tag} = A - \text{Index} - \text{Offset} (A: address bits, C: cache bytes, B: block size, W: ways of associativity.)
  • Amdahls Law: S_{\text{overall}} = \frac{1}{(1 - p) + \frac{p}{s}} (p: parallelizable fraction, s: speedup of the enhanced portion.)

View full Number Systems & Architecture Formula Sheet | Constants Table

Related Number Systems & Arch Calculators