- Mar 31, 2003
- 11,679
- 0
- 81
Hey Guys,
I am studying for my exam which I am taking early tomorrow; however, I still don't understand one concept that I know will show up on the test.
When mapping to a direct mapped 8-block, 1-word/block cache, the high 2 bits are the tag and the low 3 bits are the index. So for example, 22 (10110) would get mapped to index 110 with the tag 10.
Later on there is an example of a direct mapped 64-block, 16-bytes/block cache. The low 4 bits are ignored and bits [31:10] are the tag, bits [9:4] are the index, and then it says offset for bits [4:0].
We are then given a diagram where the low 2 bits are ignored for what it says is byte offset.
The only thing the book says on this matter is "In the MIPS architecture, since words are aligned to multiples of four bytes, the least significant two bits of every address specify a byte within a word. hence, the least significant two bits are ignored when selecting a word in the block".
Can ANYONE help me understand when to ignore the low x number of bits and why I do that?
Thanks,
-Kevin
----
Moved from OT
At Mod Evadman
I am studying for my exam which I am taking early tomorrow; however, I still don't understand one concept that I know will show up on the test.
When mapping to a direct mapped 8-block, 1-word/block cache, the high 2 bits are the tag and the low 3 bits are the index. So for example, 22 (10110) would get mapped to index 110 with the tag 10.
Later on there is an example of a direct mapped 64-block, 16-bytes/block cache. The low 4 bits are ignored and bits [31:10] are the tag, bits [9:4] are the index, and then it says offset for bits [4:0].
We are then given a diagram where the low 2 bits are ignored for what it says is byte offset.
The only thing the book says on this matter is "In the MIPS architecture, since words are aligned to multiples of four bytes, the least significant two bits of every address specify a byte within a word. hence, the least significant two bits are ignored when selecting a word in the block".
Can ANYONE help me understand when to ignore the low x number of bits and why I do that?
Thanks,
-Kevin
----
Moved from OT
At Mod Evadman
