- It is a simulator of a Set-Associative Cache written in Verilog.
- Type : Set-Associative (Modifiable to Direct-Map & Fully-Associative).
- Number of Ways : Modifiable in CacheController.v
- Number of Sets : Modifiable in CacheController.v
- Number of Total Blocks : Modifiable in CacheController.v
- We have implemented the LRU(Least Recently Used) algorithm for the Replacement of the Block.
- The data of number of hits of a particular block is maintained in the 2-D Frequency Array.
- The Simulator can be used to figure out the best design i.e the number of Sets, Ways and Blocks in the Set-Associative Cache for any particular Program.
- For Educational purposes (Eg: To experiment with and enrich the knowledge of Set-Associative Cache)
- Memory trace of the program that you want to test for efficiency.
- Icarus Verilog for Running the Verilog code on your system
- VS Code with Veriog-HDL Extension for ease of use and Simulation.
- Make a testbench for the Trace you want to test. Example given in sorting.v.
- Now run the simmilator.
- The following is the graph of Hit-Rate plotted for different Configurations of the Cache for Different Benchmarks from following link