1. QtMips cache optimization
See https://agnd.net/valpo/424/day39.html#_qtmips_cache_optimization for the specification.
Review qtmips_cli.exe
usage and tip updates.
1.1. Metric update
The metric (cycles × bits) will not give useful results. Use the metric (cycles + bits) instead. |
1.2. SRAM bits in a cache
Sections §5.3 and 5.4 are all about cache:
Relation to associativity.
How does the cache controller find the correct word when there are multiple entries at the same set index?

Example results computing number of bits in cache for configuration:
-
Sets: 8
-
Words: 1
-
Associativity: 1
-
Uses 480 bits of SRAM.
Same number of words in this cache, but with 2-way associativity:
-
Sets: 4
-
Words: 1
-
Associativity: 2
-
Uses 488 bits of SRAM.
Examples for 32 words: Sets / Words / Associativity — bits
-
4 / 8 / 1 — 1128
-
2 / 8 / 2 — 1132
-
1 / 8 / 4 — 1136