We are given 32 bit memory address references.
We are asked to find the index "given a direct-mapped cache with two-word blocks and a total size of 8 blocks". Mind you have I have the answers. I am looking to HOW to get those answers.
The index for 180, 43 and 2 are 2, 5 and 1. For other questions, I used the address mod the number of blocks. But modding those three numbers by 8 or 16 is not working.