How do i determine the bit in lenghts of the logical page offset given? can you
ID: 3583050 • Letter: H
Question
How do i determine the bit in lenghts of the logical page offset given? can you give me a quick rundown on how the answers were obtained
The total number of pages that make up the executable program is shown The total size of a frame is equal to 256 bytes. The CPU needs to access data that is at the logical address 0 1 1 0 1 11 0 1 11 0 (12 bits) The size of a word in the system is 16 bits. total program 1 logical address 2 page table physical memory frame th pages 005B 0063 006B 0073 page of data 007B 0083 008B 7 007B. 0093 10 11 12 13 binary decimal 110 1 A. What is the logical page number? 11 A 11101110 B. What is the logical page offset? 209 4096 6 C. What is the total size in bytes of the program bytes B D. The page of the data that was needed was put into the physical frame as shown above Fill in the correct index of the page table with the exact data that it holds bytes 2 E. What is the total size of a page in bytes in this system? 256Explanation / Answer
A) Logical Page number :
Page size is obtained from the logical address. Suppose if your logical address is of 8 bits, it has an addressable space of 2 power 8 bits. The page size will be n when the logical address is of 2 power n. page size = 8.
Page number = size of word - n = 16 - 8 = 8
Logical page number in decimal will be - 7 (as the indices are starting from 0)
If we observe the physical memory where the obtained page is present its 3 from the starting sequence of that value i.e 005B,006B,007B .
The binary value of the page number is 110(last 3 bits of the logical address)
C) The total size of the program can be calculated by using the word size and the accounting bits i.e 8 + 4 = 12 bits
total size = 2 power 12 = 4096 bytes
D) The page number i.e obtaines in decimal is used to fill the 'correct index' in the page table with the 'exact data' that it holds.
E) The total size of the page in the system will be the total frame size i.e 256 bytes
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.