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
$\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$
  • $\begingroup$ Yes, my mistake $\endgroup$ – sswwqqaa Jan 10 at 21:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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