L2Cache_L2cacheMemory numberPerChip: 4
Cache config: L2Cache_0_L2
cache_associativity: 4
num_cache_sets_bits: 9
num_cache_sets: 512
cache_set_size_bytes: 32768
cache_set_size_Kbytes: 32
cache_set_size_Mbytes: 0.03125
cache_size_bytes: 131072
cache_size_Kbytes: 128
cache_size_Mbytes: 0.125
i'm simulating a CMP with 4 cores per chip. My question is, what is the
total cache size? 128 KB or 128 KB per core (512 KB in total)?
The way it is currently coded, we specify the total cache size with the
L2_CACHE_NUM_SETS_BITS (and associativity), but in RubyConfig.C, this is
divided by the number of L2 banks per chip.
L2_CACHE_NUM_SETS_BITS = L2_CACHE_NUM_SETS_BITS -
log_int(g_NUM_L2_BANKS_PER_CHIP);
Thus you should be simulating 512 KB total
|