0
$\begingroup$

If

Capacity = 24 KiB Associativity = 6 Line Size = 32 B

As far as I know:

$$Capacity = Associtivity * Line Size * Sets$$

so $24576 = 32 * 6 * Sets$

$Sets = 128 = 2^7$

thus 7 least significant bits are needed to identify set number.

Am I doing it correctly?

$\endgroup$

1 Answer 1

1
$\begingroup$

Your result is almost correct. The number of sets is indeed 128. But 128=2^7 And 7 bits are required to identify a set...

$\endgroup$
1
  • $\begingroup$ Yes, my mistake $\endgroup$
    – sswwqqaa
    Commented Jan 10, 2019 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.