Pre-assignment

This exercise is meant to help you to install and familiarize yourself with the SimpleScalar 3.0 Toolset and Wattch 1.02d Toolset.

The following install instructions are for the ics server. You can also install it on your own laptop. The installation files can be downloaded from Simplescalar webpage or below. The Wattch simulator can also be downloaded from Wattch webpage or below. If you are using ics server, you can also get these packages from the public directory "/home/aca/aca1001/aca2010.tar".


  1. Install SimpleScalar 3.0 Tool Set on the Server

    • Compile simplesim-3.0 (the SimpleScalar processor simulator), type the following commands:

      • cd $HOME/SimpleScalar/simplesim-3.0
      • make config-pisa
      • make


  2. Test Your SimpleScalar Tool

    • Type the following commands:

      • cd $HOME/SimpleScalar/simplesim-3.0
      • ./sim-outorder ./tests/bin.little/test-math (by default: out-of-order issue)
      • You should see this somewhere on the screen:
        		    sim: ** starting performance simulation **
        		    pow(12.0, 2.0) == 144.000000
        		    pow(10.0, 3.0) == 1000.000000
        		    ...
        		    -1e-17 != -1e-17 Worked!		    
        		    

      From the output, you will find that sim_CPI (cycles per instruction) is about 1.04



    • Type the following commands:

      • cd $HOME/SimpleScalar/simplesim-3.0
      • ./sim-outorder -issue:inorder ./tests/bin.little/test-math (in-order issue)

      From the output, you will find that sim_CPI (cycles per instruction) is about 1.51



    • Why are the CPIs different?


  3. Questions

    1. Read the "SimpleScalar_Tool_Set" and "SimpleScalar_Tutorial" documents below. Try the different simulators available: sim-safe, sim-fast, sim-eio, sim-profile, sim-cache, sim-bpred, sim-outorder (pre-compiled test programs can be found in the directory: $HOME/SimpleScalar/simplesim-3.0/tests-pisa/bin.little/ ), compare and understand the meaning and usage of these simulators.

    2. Run the sim-outorder simulator, see the impacts of different branch prediction policies.

    3. Run the sim-outorder simulator, see the impacts of different cache sizes and replacement policies on the miss rate.


  4. Install Wattch 1.02d Tool Set

    • Compile the Wattch, type the following commands:

      • cd $HOME/SimpleScalar/sim-wattch-1.02d
      • make config-pisa
      • make

    • Read the "Wattch_Paper" below. Try the Wattch sim-outorder, and see what's the new features.
    • Wattch incorporates four different power models: avg_total_power_cycle, avg_total_power_cycle_cc1, avg_total_power_cycle_cc2, and avg_total_power_cycle_cc3. What are the differences?


  5. Documents to read:


  6. Downloads