How do I find page size number of virtual pages number of ph
How do I find page size, number of virtual pages, number of physical pages, how big the virtual memory address is, and how big the physical address is. Given 10 bits for offset within a page and 22 bits to speficify virtual page and 18 bits specify physical page.
Solution
So,
No. of bits for offset is =10
and Virtual page (Logical address) is takes 22 bits
physical page takes 18 bits
Page Size= 2number of bits required to specify in physical=218=256Kilo bits=32KB.
The number of virtual pages= Vitual page size / offset size = 222/210=212=4K pages=4096 pages.
The number of physical pages= Physical page size / offset size= 218/210=28=256 Pages.
Physical address size=222= 4 M bits= 512 KB
