Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translating from logical to physical addresses

Assume a virtual memory configuration with a page frame of size 2K, virtual address of space of size 32K and physical address space of 16K. With a page mapping of your choice, determine the actual physical address corresponding to the virtual address 0573H.

I am new on this topic. please, anyone can explain the easy way to mapping from logical address to physical address?

like image 987
Pradeep Raj Thapaliya Avatar asked Aug 19 '16 06:08

Pradeep Raj Thapaliya


1 Answers

Page size =2K=2^11

Virtual Address Space = 32K=2^15

Physical Address Space =16K=2^14

enter image description here

Here Virtual Address is :

0573H ==> 0000 0101 0111 0011

Page# = 0000 ==>0

Page offset = 101 0111 0011 ==> 573

By consulting page table we can get the frame number to which this page has been assigned to, and compute actual physical address as shown in this fig.

like image 157
Rupsingh Avatar answered Oct 23 '22 03:10

Rupsingh