Instructions
Start by entering the memory sizes in the 'Parameters' area. Any incorrect inputs will be highlighted in yellow. When everything has been entered correctly, the blue text 'Make sure to fill out all fields' will go away. In the 'Information' area you can now see all the computations needed for the program. Next you can fill in some starting values for the 'Page Table'. When you are done click 'Validate'. If the program detects an error that might be accidental it will suggest a correction that you can choose to accept. If you decline, or if the program runs into an issue that must be corrected manually (like duplicate entries), then the offending rows will be highlighted in yellow. Once you have corrected them manually, you can click 'Validate' again. Once validation is successful, the 'Page Replacement FIFO Queue' and the 'Address Conversion' areas will appear. In the queue area, you can see the current state of the queue and the 'first' element for replacing pages when you choose to do so during a page fault condition. The queue is initially populated based on the initial validated entries from highest to lowest address. So the physical page index that is higher up in the list, will be chosen as the earlier element to replace in the FIFO queue. In the 'Address Conversion' area there is a switch to toggle between Virtual -> Physical and Physical -> Virtual. Both modes expect a hexadecimal input, and will then attempt to perform the conversion. It is possible to enter an address that is above the range of the memory, a textbox will appear saying that the address is invalid. If the conversion fails in Virtual -> Physical mode, a button will appear informing you that a page fault occurred. If you click the button the program will perform the FIFO page replacement algorithm if the queue is full, otherwise it will find the next unused page in ascending physical page index order. If the conversion fails in Physical -> Virtual mode, that means an invalid address was supplied, and a text box will appear saying so.It is possible to change the 'Parameters' while the program is already running, but it will require validating the page table again, and possibly adjusting the bits to match. To restart the application, simply reload the website.
Parameters
Make sure to fill out all fieldsInformation
| Maximum virtual address | #0 |
| Maximum physical address | #0 |
| Number of pages | 0 |
| Number of page frames | 0 |
| Total number of bits for virtual address | 0 |
| Total number of bits for physical address | 0 |
| Number of bits for virtual page index | 0 |
| Number of bits for physical page index | 0 |
| Number of bits for address offset | 0 |
Page Table
| Virtual Page Index | Physical Page Index | Present Bit |
|---|---|---|
Page Replacement FIFO Queue
First
LastAddress Conversion
Conversion Direction
Virtual ⟹ Physical
Virtual Address in Binary
Physical Address in Binary
Physical Address in Hexadecimal