Consider a system with the following specifications:
Physical Address = 4 bits, Logical Address = 3 bits, Page Size = 4 bytes
- Click on PROCESS to generate a process of size 8B, consisting of 8 instructions, each 1B in size.
- Observe that the process will be divided into two pages, P0 and P1, each 4 bytes in size. Then, the process will be loaded into secondary memory.
- Click on LOAD to load the process from secondary memory into main memory.
- Click on TABLE to generate a page table and store the base address of the page table in the Page Table Base Register (PTBR).
- Click on the CPU image to generate the logical address.
- Click on the PLUS sign to initiate scaling.
Page Table Entry = PTBR + Page Number * Page Size
- Enter the PTBR value.
- Enter the value for the Page Number (p) given in the logical address.
- Click on the SUBMIT button to get the actual location of the page entry in the table.
- Observe how the mapping is performed.
NOTE: To get a clear view of a page or frame in memory, move your cursor over that particular cell.