2 performance (30pt) You are the project lead at Micro Performance. The company wants you to select which option would...
2 performance (30pt) You are the project lead at Micro Performance. The company wants you to select which option would be best for their new Micro Speed processor: Type Arithmetic 1 Branch Memory Clock Original Fast Clock Fast Mem Percent by inst. type 40% 20% 40% 1 2 4 1 1.8GHZ 3.6GH2 1.8GHz 1. Double clock speed (Arithmet io ond branch are twice as fast, mem is the same) 2. Clock the same, add a high nerformance bus and larger multilevel cache you improve memory performance by 4 times over the original. 3.6 GH tast clock MIPS code(30pt) 3 Assume that variables f,g,h,ij are assigned to registers $s0 to $s4 (in the given order). Assume that the base addresses of arrays A and B are in Ss6 and $s7. Registers $t0 to St2 are used to hold temporary values. add $t0, $s6, $s0 add St1, Ss7, $s1 Blw Ss0, O(St0) Laddi St2, $t0, 4 lw $t0, O($t2)- add Sto, St0, $s0 sw $t2, O(St1) what does this code do? Identify RAW, WAR and WAW dependences in this code. in the apter w RAW is read WAR iS wrie afterread WAW iS WCite after write back aise WAW ine HI is WAR 6/7 isWAR is RAW 2
2 performance (30pt) You are the project lead at Micro Performance. The company wants you to select which option would be best for their new Micro Speed processor: Type Arithmetic 1 Branch Memory Clock Original Fast Clock Fast Mem Percent by inst. type 40% 20% 40% 1 2 4 1 1.8GHZ 3.6GH2 1.8GHz 1. Double clock speed (Arithmet io ond branch are twice as fast, mem is the same) 2. Clock the same, add a high nerformance bus and larger multilevel cache you improve memory performance by 4 times over the original. 3.6 GH tast clock MIPS code(30pt) 3 Assume that variables f,g,h,ij are assigned to registers $s0 to $s4 (in the given order). Assume that the base addresses of arrays A and B are in Ss6 and $s7. Registers $t0 to St2 are used to hold temporary values. add $t0, $s6, $s0 add St1, Ss7, $s1 Blw Ss0, O(St0) Laddi St2, $t0, 4 lw $t0, O($t2)- add Sto, St0, $s0 sw $t2, O(St1) what does this code do? Identify RAW, WAR and WAW dependences in this code. in the apter w RAW is read WAR iS wrie afterread WAW iS WCite after write back aise WAW ine HI is WAR 6/7 isWAR is RAW 2