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:
SETSis a number of cache setsASSOCIATIVITYis a number of sells located in one setBITS_PER_CELLis a cell byte size, represented in bits
If you implement ISelector interface, you can simulate different cache behaviours.