1,883 views
2 votes
2 votes
For a page size of 200 words, what is the page number and offset for a logical address of 1142?

3 Answers

Best answer
2 votes
2 votes

Offset:- The offset is the distance (in bytes) relative to the start of the page. I.e.,

Offset= logical_address mod page_size.

Physical address = (physical_page_number * page_size) + offset

Page Number=Logical Address / Page Size

According to question given, 

Page number= Logical Address / Page Size1142/ 200 = 5           

Offset = logical_address mod page_size = 1142%200 = 142         

selected by
0 votes
0 votes
we can represent memory in byte addresable frmte or in word addressable formate it is clear so  200 words can be addressable using 8 bits ......so last  8 bit is for  page size(offset) annd remainning for page number.
0 votes
0 votes

let make some assumption:- 1.system is word addressable 2.given address is in hexadecimal....

now

(1142)16=(0001 0001 0100 0010)...  

page size=200 word ->log2200 =7.64  (8 bits are needed )for offset value...

now in above address ..last 8bit (0100 0010) represent the offset value and remaining bit (0001 0001) represent the table block no.

No related questions found