SimpleScalar Lab

  1. Download makefile required to compile for simplescalar.
  2. Download g3fax.c benchmark.
  3. Log on to eon.cs.ucr.edu or hill.cs.ucr.edu to compile.
  4. Compile the g3fax code using the makefile. This should create a binary called "g3fax".
  5. Go to http://www.simplescalar.com/docs.html and download "users_guide_v2.pdf". Use this guide to figure out all the following steps.
  6. Run sim-cache on your the g3fax binary. Sim-cache is a simulation mode of the SimpleScalar simulator that keeps track of cache statistics. sim-cache is located at /usr/local/bin.
  7. Use the information in the user guide to figure out how to set different cache configurations.
  8. Run g3fax on SimpleScalar for the following cache configurations:
    Sets Block Size Associativity Replacement
    256 8 1 l
    256 16 2 l
    512 16 2 l
    512 32 2 l
    512 64 4 l

    These values apply only to the data cache. You can use any values you want for the instruction cache.

  9. Write a short report that specifies the miss rates for each one of the cache configurations. Give a short description of how you obtained these results (what flags did you use?). Describe each step and explain its purpose. In addition to reporting the cache miss rates, discuss the other capabilities of the SimpleScalar simulator. Read the user guide to determine what these capabilities are.
  10. Turn in your report online and get checked off by the TA.