Page 1 of 1

following is the MIPS assembly code The Lw $1,100($3) Addi $6,$2, 3000 Loop: Lw $7, 200($1) Add $5, $3, $1 Sw $5, 300($3

Posted: Sun Jul 10, 2022 11:31 am
by answerhappygod
following is the MIPS assembly code The
Lw $1,100($3)
Addi $6,$2, 3000
Loop: Lw $7, 200($1)
Add $5, $3, $1
Sw $5, 300($3)
Addi $6, $6, 4
Bne $5,$7, loop
a. Identify the instruction type used for each uniqueinstruction in the code.
b. If the cycles required are i.ALU-4, ii. Store- 7,iii.Branch-3, iv. Load-5, what is the average CPI?
c. What is the MIPS rate for the code working on a computer withclock rate of 1GHz?