Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 (6 pt). For this problem, you are given a system with a virtual memory. The virtual memory had the following configuration- Physical addresses are
2 (6 pt). For this problem, you are given a system with a virtual memory. The virtual memory had the following configuration- Physical addresses are 8 bits long, but only 2 128 bytes of physical memory is installed, at physical addresses 0 up to 127 Pages are 2 16 bytes long. Virtual addresses are 10 bits long. 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 toa 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. able 1: Main Memorv be | 61 20 6d 61 6b | 65 | 20 79 6f 75 20 63 | 72 | 79 0a 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. Table 2: Page Table Virtual page Physical page a) List the four bytes in the word beginning at physical address Ox34. b) How many virtual addresses refer to the first byte of the shaded word in row 0x2? List AII c) How many virtual addresses refer to the first byte of the shaded word in row 0x4? List d) List al virtual addresses that refer to the first byte of the shaded word in row 0x6 e) If the program loads a word from virtual address 0x5C (01011100), write down what data is returned? f What is the result if the program loads a word from virtual address 0x64 (01100100)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started