Paging related Questions

Thread Starter

zulfi100

Joined Jun 7, 2012
656
Hi,
I have tried to solve all of these questions. I know that page size and frame size should be equal but from my answer page size and frame size is coming different. I cant figure out. Some body plz tell me what's the problem with my solutions.

Q1. Consider a simple paging system with the following characteristics: a page table size of 64 entries of 11 bits (including valid/invald bit )each and a page size of 512 bytes.
a) How many bits in the logical address specify the page number?
Page table size= 64 entries= 2^7
Therefore page number = 7 bits
b) How many bits in the logical address specify the offset within the page?
Frame number= 10 bits
Page size = 512 bytes
Total pages = 64
Total physical memory= 64 * 512=32768= 2^15
Therefore offset= 5 bits
c) How many bits are in the logical address?
Page number bits + offset bits= 7 + 5= 12 bits
d) What is the size of logical address space?
Logical address space= 2^ 12= 4K
e) How many bits in the physical address specify the page frame number?
10 bits
f) How many bits in the physical address specify the offset within the page frame?
5 bits
g) How many bits are in the physical address?
15 bits

h) What is the size of the physical address space?
32 k

Zulfi.
 

Thread Starter

zulfi100

Joined Jun 7, 2012
656
Hi,
I have modified the answers:

a) How many bits in the logical address specify the page number?
Page table size= 64 entries= 2^6
Therefore page number = 6 bits
b) How many bits in the logical address specify the offset within the page?
Frame number= 10 bits
Page size = 512 bytes
Total pages = 64
Total physical memory= 64 * 512=32768= 2^15
Therefore offset= 5 bits
c) How many bits are in the logical address?
Page number bits + offset bits= 6 + 5= 11 bits
d) What is the size of logical address space?
Logical address space= 2^ 11= 2K
e) How many bits in the physical address specify the page frame number?
10 bits
f) How many bits in the physical address specify the offset within the page frame?
5 bits
g) How many bits are in the physical address?
15 bits
h) What is the size of the physical address space?
32 k

Kindly guide me if its correct or not?

Zulfi.
 
Top