# Paging related Questions

Discussion in 'Homework Help' started by zulfi100, May 27, 2013.

1. ### zulfi100 Thread Starter Member

Jun 7, 2012
320
0
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.

Page table size= 64 entries= 2^7
Therefore page number = 7 bits
Page size = 512 bytes
Total pages = 64
Total physical memory= 64 * 512=32768= 2^15
Therefore offset= 5 bits
Page number bits + offset bits= 7 + 5= 12 bits
Logical address space= 2^ 12= 4K
10 bits
5 bits
15 bits

32 k

Zulfi.

2. ### WBahn Moderator

Mar 31, 2012
18,093
4,920
Why, given a value of 64, do you use 2^7?

3. ### zulfi100 Thread Starter Member

Jun 7, 2012
320
0
Hi,

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.