Question: I just need solution for Assignment no 1&2. Assignment 1 In this assignment, you will work on the memory block mapping to cache. To perform
I just need solution for Assignment no 1&2.


Assignment 1 In this assignment, you will work on the memory block mapping to cache. To perform this assignment, type and load the code in the following table in to SPIM-CACHE. When asked for the starting address, use the address of the first instruction. Usually 0x00400000. data 0x10000480 Array A word 1 2 3 4 5 6 7 Array B word 4 5 6 7 8 9 10 text globl main main la $2 Array A. la $3, Array B li $6, 0 result 0 li $4, 7 number of elements loop lw 0 ($2) lw 0 ($3) sub $5, $5, $7 Array Atil-Array Btil add $6, $6, $5 #result result addi $2, $2,4 addi $3, $3,4 addi $4,$4, -1 program bgt $4, $0, loop end of li $2, 10 syscall Assignment 1 In this assignment, you will work on the memory block mapping to cache. To perform this assignment, type and load the code in the following table in to SPIM-CACHE. When asked for the starting address, use the address of the first instruction. Usually 0x00400000. data 0x10000480 Array A word 1 2 3 4 5 6 7 Array B word 4 5 6 7 8 9 10 text globl main main la $2 Array A. la $3, Array B li $6, 0 result 0 li $4, 7 number of elements loop lw 0 ($2) lw 0 ($3) sub $5, $5, $7 Array Atil-Array Btil add $6, $6, $5 #result result addi $2, $2,4 addi $3, $3,4 addi $4,$4, -1 program bgt $4, $0, loop end of li $2, 10 syscall
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
