Memory (revision 141031-r01KI)

Return to Lab 06

  1. Download the simulation file:
    wget https://projects.ui.ac.id/attachments/download/7930/Memori.tar.gz
    
  2. Extract the archive:
    tar -xzf Memori.tar.gz
    rm -f Memori.tar.gz
    
  3. Enter Memori directory:
    cd Memori
    
  4. First Simulation
    1. Enter MemorySimulation directory:
      cd MemorySimulation
      
    2. Compile all available java files:
      javac *.java
      
    3. Run the simulation:
      appletviewer VirtualMemory.html
      
    4. Observe how the simulation works while listening to the assistant.
    5. Exit from the simulation by closing the program window.
    6. Exit from the MemorySimulation directory:
      cd ..
      
  5. Second Simulation
    1. Enter MemoryTutorial_Simulator directory:
      cd MemoryTutorial_Simulator
      
    2. Compile all available java files:
      javac *.java
      
    3. Run the second simulation:
      java Camera
      
    4. This window will be available:
    5. Click the Virtual Memory and Paging button (bottom right):
    6. The next window will be availabe:
    7. Click the Auto Generate Add which is located on the Mid right part of the window. Take note of the result:
    8. Click the Next button which is located on the bottom right part of the window. Observe how the simulation is progressing, mainly on the Progress UPDATE part.
    9. Keep on clicking the Next button while observing until the last random address generated is translated.
    10. Exit from the simulation by closing the all simulation windows.
    11. Exit from MemoryTutorial_Simulator directory:
      cd ..
      
  6. Exit from Memori directory:
    cd ..
    
  7. Create a WHAT-IS-THIS.txt file and fill it with:
    1. Your explanation on the first Simulation.
    2. "Address Reference String" which you got after clicking Auto Generate Add button twice.
    3. Your explanation on the second Simulation.
  8. This is the end of the Memory Task.

Return to Lab 06
Return to Wiki