Regarding Processor Direct Cache, what is the proper mathematical technique for discovering how many words are loaded on a cache miss?
For example if you have a direct mapped cache with a total data cache size of 32 words and a direct mapped cache of 4-word blocks. I believe I have a cache index of 8 cache blocks:
32/4 = 8
Example: Finding a block in python:
var1 = 56 print ((var1 / 8)% 8)
The answer: 7
So finding where to store the blocks is simple enough but I'm uncertain on a miss exactly how MANY words will be loaded?