tag + set = log2(# of blocks in cache) size of main memory/size of block = # of blocks in cache N*2set = # of blocks in cache 2offset = size of block 2set = # of rows Total bits in cache = (size of block * 8 + 2 + tag) * N * 2set //in WB Total bits in cache = (size of block * 8 + 1 + tag) * N * 2set //in WT Size of main address - set - offset = tag
Cache Index = Block Address % #Cache Blocks
but in the practice quiz, correct answer is shown as
Cache Index = Byte Address % #Cache Blocks
I guess they never miss, huh?
lmao was looking for this
tag + set = log2(# of blocks in cache)
size of main memory/size of block = # of blocks in cache
N*2set = # of blocks in cache
2offset = size of block
2set = # of rows
Total bits in cache = (size of block * 8 + 2 + tag) * N * 2set //in WB
Total bits in cache = (size of block * 8 + 1 + tag) * N * 2set //in WT
Size of main address - set - offset = tag
Practice Quiz at the end was somewhat wrong. Should have been Block address % #Cache blocks, not byte address
good vIDEO