CS552 Course Wiki: Fall 2020 | Main ยป
Cache Simulator |
|
Cache Simulator cachesim is a cache simulator which simulates a cache based on its input parameters. It has four/five inputs:
uses pseudo random replacement instead. For example to simulate the direct-map cache designed in HW5, you should use cachesim as follows:
You can use any of test traces and assign its path as the last input parameter to cachesim. To simulate 2-way set associative cache you have designed in Hw 5, you should use cachesim in this way:
cachesim shows actions happening in the defined cache after running each line of the trace input file. Example running: cachesim 1 2048 8 mem5.addr output: Load Miss for Address 348 Load Miss for Address 2396 with Eviction Which are the actions happening when running mem5.addr (one load to 348 and one load to 2396) |
Page last modified on April 09, 2013, visited times |