- Language: C++
- Test cases:
- 1st input: cache#.org
- 2nd input: reference#.lst
- Indexed policy: LSB
- Replacement policy: NRU
This program is to simulate cache behavior. The first input files gives a cache with M-bit address bits, B-byte block size, E cache sets, and using A-way set associativity. The second input file assigns a series of referenced block address. Finally output the record of hit/miss into another file.