【问题描述:】
PART A.
The Dinero cache simulator is available on the COE Solaris system (machines alpha, beta). The
following information is for using dineroIII (which is the default dinero installed on COE Solaris
systems). You will also find dineroIV installed on both Solaris and Linux machines. Please use
dineroIII for this assignment. You are welcome to experiment with dineroIV.
Dinero allows you to configure a cache using command line arguments (see attached info on
Dinero). The simulator takes as input an address trace. The Dinero input format "din" is an
ASCII file with one LABEL and one ADDRESS per line. The rest of the line is ignored so that it
can be used for comments.
LABEL = 0 read data
= 1 write data
= 2 instruction fetch
= 3 escape record (treated as unknown access type)
= 4 escape record (causes cache flush)
0 <= ADDRESS <= ffffffff where the hexadecimal addresses are NOT preceded by "0x."
Here are some examples:
2 0 This is an instruction fetch at hex address 0.
0 1000 This is a data read at hex address 1000.
1 70f60888 This is a data write at hex address 70f60888.
Make sure to use lowercase.
After creating a trace file (e.g., trace.txt), you run Dinero as follows:
dinero –i16KB –d32KB –b32 < trace.txt
This will simulate a 16KB instruction cache and a 32KB data cache, each with a 32 byte block
size.
Your job is to generate reference streams in Dinero's din format (see description provided with