Database-Management-System
May 29, 2024
Question 8069 – Computer-Organization
May 29, 2024
Database-Management-System
May 29, 2024
Question 8069 – Computer-Organization
May 29, 2024

Question 8134 – Computer-Organization

The width of the physical address on a machine is 40 bits. The width of the tag field in a 512 KB 8-way set associative cache is _________ bits.

Correct Answer: A

Question 30 Explanation: 
Given that it is a set associative cache, so the physical address is divided as following:
(Tag bits + bits for set no. + Bits for block offset)

In question block size has not been given, so we can assume block size 2x Bytes.

The cache is of size 512KB, so number of blocks in the cache = 219/2x = 219-x

It is 8-way set associative cache so there will be 8 blocks in each set.
So number of sets = (219 − x)/8 = 216 − x

So number of bits for sets = 16−x

Let number of bits for Tag = T

Since we assumed block size is 2x Bytes, number of bits for block offset is x.

So, T + (16−x) + x = 40

T + 16 = 40

T = 24

A
24
B
25
C
26
D
27
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!