Question
Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long. The memory is word addressable. The page size is 8 kB and the word size is 4 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128 valid entries. At most how many distinct virtual addresses can be translated without any TLB miss?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2019 answer key
Solution
Calculate the number of virtual addresses contained within the pages mapped by the TLB entries in a word-addressable architecture.
We are given:
- Page size =
- Word size =
- Memory is word addressable, so each distinct address refers to one word.
Calculate the number of addressable words in one page:
The TLB has valid entries. Each valid entry maps one virtual page to its corresponding physical frame.
Therefore, the maximum number of pages that can be translated without a TLB miss is pages.
The maximum number of distinct virtual word addresses that can be translated without any TLB miss is:
Expressing in terms of :
B
Treating the system as byte-addressable instead of word-addressable (which would yield 128 * 8192 = 2^20 = 1024 * 2^10).
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2019 Computer Science and Information Technology (CS)
- Question
- 43 of 65, printed as CS Q.33
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.