A physical address is 32 bits and the virtual address is split as 10 bits 'off-set',2 bits 'byte addressability', 20 bits being left for identifying the page.
What size are the pages and the page tables?
I believe its:
2^10 = 1024.
The ones that are reserved pages are 2^2 = 4
I am not sure on how to use the addressbility though...
Thanks again guys :)
let me tell you:
In the architecture that you use, you will use 2 20 pages, and offset will help you identify the word location in a page. So page size is 2 10 . What is the 2 bits of addressability? It is the addressability of bytes in a word => you have 4 bytes in a word and these 2 bits maps to the byte locations in your word.
Addressing mechanism is is similar to looking for a word in the dictionary, first, find the chunk of words with just the 1st letter matching and then keep narrowing down. Similarly, 1st 20 bits to locate the page , next 10 bits to locate the word the particular page and last 2 bits for the byte in the word.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.