Simple simulator that allows you to enter hex-prefixed address queries and view cache state.
First, you need to download .NET. Open project repository and run the following command:
dotnet run
Now enter addresses (in 0x<hex-number>
format). Press enter to query, Ctrl + C
to end program.
All parameters are located in Program.cs:
SETS
is a number of cache setsASSOCIATIVITY
is a number of sells located in one setBITS_PER_CELL
is a cell byte size, represented in bits
If you implement ISelector interface, you can simulate different cache behaviours.