Question: For this problem, you are given a system with a virtual memory. The virtual memory has the following configuration- Physical addresses are 8 bits long,

 For this problem, you are given a system with a virtual

For this problem, you are given a system with a virtual memory. The virtual memory has the following configuration- Physical addresses are 8 bits long, but only 27-128 bytes of physical memory is installed, at physical addresses 0 up to 127. Pages are 24-16 bytes long. Virtual addresses are 10 bits long 0 An exception will be raised if a program accesses a virtual address whose virtual page has no mapping in the page table. Exception will also be raise if this is mapped to a physical page outside of installed physical memory The main memory contents are shown in Table 1. To find the physical address of a byte, you need to read the least significant digit from the column label and the most significant digit from the row label. For example, the shaded byte in the second row is at physical address 0x12. All entries are in hexadecimal Table 1: Main Memor 4e 65 0x1 20 79 6e 6e 20 67 70 20 65 20 67 72 64 20 64 20 63 73 69 20 76 67 65 6f 76 65 72 75 20 20 6c 65 76 65 75 20 79 6f 20 6d 61 76 65 72 65 6f 76 75 4e 65 72 20 64 20 67 20 75 73 20 61 72 6e 61 4e 65 64 65 75 20 72 20 20 72 6f 65 65 65 79 76 6b 20 65 67 20 79 79 0x7 The page table is shown in Table 2. The virtual page number in the left column is mapped to the physical page number in the second column. Virtual page numbers are listed in binary 20 Table 2: Page Table Virtual page Physical page 0x2 0x1 100 101 110 a) List the four bytes in the word beginning at physical address 0x34. b) How many virtual addresses refer to the first byte of the shaded word in row 0x22 List them ALL. c) How many virtual addresses refer to the first byte of the shaded word in row 0x42 List them ALL d) List all virtual addresses that refer to the first byte of the shaded word in row Ox6 e) If the program loads a word from virtual address Ox5C (01011100), write down what data is returned? f) What is the result if the program loads a word from virtual address 0x64 (01100100)? 0x9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!