Lab Assignment 1: Cache Memories

Table of Contents

Objective

The purpose of this lab is to understand the functionality of cache memories, and to get an insight into various trade-offs related to the design of systems with cache memories.

Time allocation

4 hours (2 lab sessions) are allocated for this lab.

Preparation

You should review the following resources before you start working on this lab:

Assignments

  1. Cache basics
    Solve the following problems and include the solution in the submitted report.

  2. Locality of data
    This assignment requires you to use sim-cache for the simulations on two different architectures.
    You need to run two test programs (test1.ss, test2.ss) on each of the two architectures.

    The source code and the binaries of the test programs are of the .c and .ss suffix, respectively. The configuration files for simulations are of the .cfg suffix. The source code, the test programs and the configuration files are already available in the simplescalar/cde-root directory - which you copied earlier in Lab 0.

    To complete this assignment, please follow the instructions listed below:
  3. Evaluation of cache configurations

    This assignment requires you to use sim-cheetah in order to evaluate the performance of several cache configurations.

What to report