Part of this assignment I have is: given a 32-bit address, determine the size of the cache, size of a line, etc.
In a previous class, we did quite a bit of these problems, except that the word-size was equal to the address length (32 bits / 4 bytes). But this particular problem has the word size being 1 byte. So are the 2 least significant bits in the address still 0, even with the word-size being 1 byte? Because for every cache address problem we had with 4 byte words, the two right-most bits in the address were always zero (aligned on the boundary or whatever?), thus the word select field in the address was actually 2 bits less than it said. But I'm not sure if this is till the case with 1 byte words. Any idea?
In a previous class, we did quite a bit of these problems, except that the word-size was equal to the address length (32 bits / 4 bytes). But this particular problem has the word size being 1 byte. So are the 2 least significant bits in the address still 0, even with the word-size being 1 byte? Because for every cache address problem we had with 4 byte words, the two right-most bits in the address were always zero (aligned on the boundary or whatever?), thus the word select field in the address was actually 2 bits less than it said. But I'm not sure if this is till the case with 1 byte words. Any idea?