1,107 views

In a cache memory if total number of sets are ‘$s$’, then the set offset is:

1. $2^8$
2. $\log_2s$
3. $s^2$
4. $s$

If $'s'$ is the number of sets in the cache, then the set  index has $\log_{2}s$ bits.

References:

So, the correct answer is $(B).$

### 1 comment

Which of those refreences has the term "set offset"?
If S is the number of sets in our cache, then the set index has s=log2 S bits.
by
Number of bits required to address s sets = log S  (base 2)

B is correct.
by
option B) If s is the number of sets in cache then set offset is log2(S)
by

1 vote