Assume a 2-way set associative data cache with (1) 2 cache s…

Assume a 2-way set associative data cache with (1) 2 cache sets,  (2) 2 words (8 bytes) per block (line), and (3) an LRU cache block replacement policy. For data writes, the data cache employs a write-back and write-allocate policy. As you did for MP8 data cache exercises, copy the following data memory reference table into your answer box, and fill  the remaining table with the appropriate data cache information for each memory reference. Memory Access Address in hex Cache Tag  Cache Set Index Byte Offset Result (hit/miss) # memory refs  4 bytes Read 0x58  5  1 0 miss 1 4 bytes Read 0x68 4 bytes Write 0x58 4 bytes Write 0x68 4 bytes Read 0x40 4 bytes Read 0xC    

Assume the values of integer variable “sum” is associated wi…

Assume the values of integer variable “sum” is associated with the registers $t2. Write MIPS assembly code to perform the following C/C++ if statement assuming $t5 is available. If needed, you can reference MIPS Green Sheet. if (sum < 0 && sum > 10)     sum = sum – 20;else     sum = sum + 10;