'Direct Mapping Cache Exercise
Consider a computer with the following characteristics: total of 1Gbyte of main memory; word size of 1 byte; block size of 32 bytes; and cache size of 128 Kbytes.
a)For the main memory addresses of 11101234 and 0FFCABBE, give the corresponding tag, cache line address, and word values for a direct-mapped cache.
b) Give any two main memory addresses (based on the format identified in (a) with different tags that map to the same cache line for a direct-mapped cache.
Please help me to solve it. I tried to do it but i am not sure if it is correct. also, it's bit confusing for me because the main memory size is 1GB but the address (11101234) when converted is bigger. Explanations as to why would be extremely helpful as i'm trying to understand how to work these out for further understanding.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|