Question: Please answer fully explaining part a (ii) and (iii) in particular and part (b) WIll leave thumbs up only if answered correctly. Question 3 (a)

Please answer fully explaining part a (ii) and (iii) in particular and part (b)
WIll leave thumbs up only if answered correctly.
Question 3 (a) Consider a hypothetical machine with a byte-addressable main memory of 1 Mbyte and a block size of 16 bytes. Assume that a direct mapped cache consisting of 64 lines is used with this machine. (i) How many bytes in total can be stored in the cache? What is the length of a memory address? (i) Describe how the memory address is divided into tag, line number and byte number, giving the number of bits for each. (ii) Into which lines would bytes with each of the following addresses be stored? 0001 0001 0001 1011 1100 1100 0011 0011 1100 0101 1101 0000 0001 1101 1000 1010 1010 1010 1010 0000 (iv) Suppose the byte with address 0001 1010 1100 0001 1000 is stored in the cache. What other bytes are stored along with it in the same cache line? (b) A set associative cache has a block size of 8 bytes, and has 2-line sets. The capacity of the cache is 32 Kbytes and main memory can store 8 Mbytes. Describe how a main memory address is divided into tag, set number and byte number, giving the number of bits for each
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
