I am new here and I desperatley need some help...
I have this assignment due very soon and I am having trouble understanding and approaching it...starting from Part 1 below...
Create an address stream with good spatial locality but bad temporal locality called SpatialStream.txt. Then create a stream that has good temporal locality but bad spatial locality called TemporalStream.txt. Each stream must have at least 100 accesses in it.
// What do they mean by creating an address stream with 100 accesses in it???
I have somewhat an idea of what spatial and temporal locality is but don't know how to interpret it to an address stream.. please help!
Begin by writing a simple cache simulator in cache.c. This direct-mapped cache receives the cache size and line size for initialization.
Write a simulator for the cache in cachesim.c. The simulator runs by reading in from a file. This file contains the address stream the cache sees. Each address is an integer, written in ascii characters. Each address represents an access into the cache. The simulator reports the # of accesses and miss rate at the end of the simulation.
Run the simulation on each address stream with the following cache configurations:
Cache Size Line Size
3. Make two graphs - one that graphs the different address streams with varying sizebut constant line size, and another that graphs the different address streams with varying line size but constant size. Graph the miss rates.
Thank you everyone! Any help will be greately appreciated!