Question 4:
a) Assuming a 1 KB page size, what are the page numbers and offsets for the following logical addresses references (provided as decimal numbers). Show all calculations steps. (4 marks)
• 21112
• 5500050
Answers
Answered by
6
Explanation:
First convert both addresses into binary number, i will write direct conversion, I assume you already know, how to convert decimal to binary.
(21112)10 = (101001001111000)2
We know that the the address generated by CPU will be in this format,
| Page Number | Page Offset |
Page Offset is given that is: 1 kb means 10 bit represent the page offset, and else bits represent the page number.
The CPU Generated address is of 15 bits which is (101001001111000) So the Page Number is of 5 bits and page offset is of 10 bits.
Page Number: 10100 that is 20
Page Offset : 1001111000 that is 632.
The Second address you can try with yourself.
Similar questions