edited by
923 views
3 votes
3 votes

If a processor has $32$-bit virtual address, $28$-bit physical address, $2$ kb pages. How many bits are required for the virtual, physical page number?

  1. $17,21$
  2. $21,17$
  3. $6,10$
  4. None
edited by

2 Answers

1 votes
1 votes
Number of bits required to address a virtual page is:  $log_{2}\left ( \frac{VirtualAddressSpace}{PageSize} \right )$

Number of bits required to a address a physical page is :   $log_{2}\left ( \frac{PhysicalAddressSpace}{PageSize} \right )$

Here Virtual Address Space $=$  $2^{32}B$ and the physical address space  $=$  $2^{28}B$,  PageSize $= 2^{11}B$

$\therefore$ Bits required for virtual page number  $=$  $log_{2}\left ( \frac{2^{32}}{2^{11}} \right )=21$  $bits$

and  Bits required for physical page number  $=$  $log_{2}\left ( \frac{2^{28}}{2^{11}} \right )=17$  $bits$

Option B is correct.
Answer:

Related questions

5 votes
5 votes
3 answers
1
admin asked Apr 1, 2020
893 views
Which of the following is not a form of main memory?Instruction cacheInstruction registerInstruction opcodeTranslation look-aside buffer
1 votes
1 votes
1 answer
4
admin asked Apr 1, 2020
1,034 views
A decimal has $25$ digits. The number of bits needed for its equivalent binary representation is approximately,$50$$74$$40$$60$