Click to See Complete Forum and Search --> : paging address


Alpha Vijayan
November 26th, 2004, 03:41 AM
There is a controversy in finding the logical address.This is the question:
Consider a logical address space of 8 pages of 1024 words each mapped onto a pysical memory of 32 frames.
a)How many bits are in the logical address?
b)How many bits are in the physical address?

Solution:

b) 32*1024
ie, 2 power 5 * 2 power 10= 2 power 15
Therefore no of bits used in the physical address=15 bits
a) One solution:8*1024
ie,2 power 3*2 power 10=2 power 13.So 13 bits
to represent logical address.

Second solution:32/8=4=2 power 2.This two bits are used to select which page
it is.So totally 2+13=15 bits to represent logical address.

Which is the correct answer for the bits in logical address?

thanks in advance