Translation from logical to physical addresses

Assume that the virtual memory configuration has a 2K page frame, a 32K virtual address space, and a 16K physical address space. When displaying the pages of your choice, determine the actual physical address corresponding to virtual address 0573H.

I am new to this thread. please can anyone explain a simple way of matching from a logical address to a physical address?

+4
source share
1 answer
Page size =2K=2^11

Virtual Address Space = 32K=2^15

Physical Address Space =16K=2^14

enter image description here

Here's the virtual address:

0573H ==> 0000 0101 0111 0011

Page# = 0000 ==>0

Page offset = 101 0111 0011 ==> 573

By comparing the page table, we can get the frame number to which this page was assigned, and calculate the actual physical address, as shown in this pic.

+3
source

Source: https://habr.com/ru/post/1651745/


All Articles