Direction: Consider two cache organizations :
The first one is 32 kbyte 2-way set associative with 32 k byte block size. The second one is of the same size but direct mapped. The size of an address is 32 bit in both cases. A 2- to-1 multiplexer has a latency of 0.6 ns while a k-bit comparator has a latency of k/10 ns. The hit latency of het set associative organization is h1 while that of the direct mapped one is h2.
-
The value of h2 is
-
- 2.4 ns
- 2.3 ns
- 1.8 ns
- 1.7 ns
- 2.4 ns
Correct Option: D
As we know that,
| Number offsets = | ||
| (no of blocks in a set × block size) |
| = | = (10 bits) | |
| 1*32 B |
As given that, word offset = 5 bits
So, tag bits = 32 – 10 – 5 = 17
Hence h2 = 17/10 = 1.7ns