Question 7781 – Computer-Organization
June 3, 2024
Question 2446 – KVS 30-12-2018 Part B
June 3, 2024
Question 7781 – Computer-Organization
June 3, 2024
Question 2446 – KVS 30-12-2018 Part B
June 3, 2024

Question 7867 – Computer-Organization

The size of the physical address space of a processor is 2P bytes. The word length is 2W bytes. The capacity of cache memory is 2N bytes. The size of each cache block is 2M words. For a K-way set-associative cache memory, the length (in number of bits) of the tag field is

Correct Answer: B

Question 9 Explanation: 
Physical memory is of size 2P bytes.
Each word is of size 2W bytes.
Number of words in physical memory = 2(P-W)
So the physical address is P-W bits
Cache size is 2N bytes.
Number of words in the cache = 2(N-W)
Block size is 2M words
No. of blocks in the cache = 2(N-W-M)
Since it is k-way set associative cache, each set in the cache will have k blocks.
No. of sets = 2(N-W-M ) / k
SET bits = N-W-M-logk
Block offset = M
TAG bits = P-W-(N-M-W-logk)-M = P-W-N+M+W+logk-M = P – N + logk
A
P – N – log2K
B
P – N + log2K
C
P – N – M – W – log2K
D
P – N – M – W + log2K
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!!