Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Virtual Address

Convert the +virtual address 0x12345678 into a physical address solution?


Please show your work

Suppose that a page contains 4Kbytes. A virtual address and a physical address are both 32 bits wide. Here is the TLB: Page Table Index Virtual Page Number Physical Page Number
0 0x00678 0x00027
1 0x01234 0x00543
2 0x12345 0x00200
3 0x45678 0x00005

There are some missing parts to your question. Specifically, what sort of MMU is in use. We will assume a single level of page tables, and a 4KiB page size.

Given that the virtual address V is 0x12345678, and that the page size P is 4KiB.

A memory access is made to location V. The processor splits the address V into two sections. The upper bits represent the page table, and the lower bits the page offset.

Since there are 4KiB bytes per page, 12 bits are needed for the page offset. The page table T (upper 20 bits) is then 0x12345 and the offset O (lower 12 bits) within that page is 0x678.

Now, since we have a single level page table, that page table would need 1 million entries to cover a 4GiB address space. We index into the page table, and either find that there is no entry for T, in which case we issue a "Segmentation fault" type error message and terminate the program, or that we have a valid entry, or a paged entry.

If we have a paged entry, the data for the page is resident in the swap file. We choose another page to swap out (using LRU - least recently used - approximation), and swap in the page, mark the entry valid, and continue. Note that we receive an exception from the processor on access, and we will have to restart the instruction in this case.

If we have a valid entry, we retrieve the physical base address A (say 0x54321) from the descriptor in the virtual address translation table, then add O (the offset) to it, resulting in the final physical address of 0x54321678.

Stop trying to use yahoo answers to get your quizzes answered and do your own homework. Report It

Tags
  Business Address   Call Forwarding   Call Handling   Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business   Virtual Offices
Related information
  • I need a virtual address. Suggestions?

    A simpler solution might be to not list a mailing address at all. Most companies handle everything via email and telephone now, so it shouldn't be a problem.

    ...
  • I can't get files off of my Virtual PC?

    Use WinImage. You can mount your VHD (virtual hard drive) and then copy things off. ...

  • ADSL config problem,how to point static ip address to my web homepage.?

    If you correctly configured the Virtual Server port on your router and have the correct external (routable) IP address then you may not be able to host a web site on your connection. Your ISP may b...

  • Virtual puja website addresses?

    Hmmm the only one I can think of is ...

  • Does anyone knows the address of the website of an online virtual human pet?

    I have included a couple links for you. Neopets is my favorite. Have fun!!

    ...
  • Does anyone know the web address for a Washington state free virtual homeschooling academy?

    I am interested also! Here are some links that I found off of a google searsh, "Washington State Free Virtual Homeshcooling Academy." Good luck, and thanks for the opportunity to read up...

  • What do you think of creating a virtual red light district with the address ".xxx" for all porn sites?

    I agree. I believe that all porn sites, should have the .xxx suffix. Easier to block those sites. I am surprised that Focus on the Family and the American Family Association is opposed to such a...

  • How does a VMware virtual computer TX and RX using its own IP and not using it's host's?

    VM uses Routing Information Protocol (RIP), much the same way that routers can see each other, to make a table share accross 6 so that when 5 trys to send to 7 it sends out a RIP request_for_path ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster