Download as pdf
Download as pdf
You are on page 1of 4
Computer Architecture. Sessional 2 Nome ! i a Reg No + SPIB= BCS-147 koe hee Lae] a I ae Chage + 1 = C Question wo 4 2 C Poste al 4 This conle veade and writes four Lbrodts ' for every 6 FLoPs. is So the U nithemalic inbensity oh His kernel kes (Pare b4 Converting the Cocle in’s VMIPS a only code uling & Sto YM vi | Consicler MVE 2 64: s 5 aw Perfoyms First YY operating { lt g¢ vi, 44 | u g yo # index sfaihketion boop Poly & vl aver+tyrl # toaol G-ve 3 i dv SVE b-ve+ Sri # load bive. 5 "smut wv: dive, avi ¢v3 #_arre ™ bere lv $v2, A-imetyh dt bool aim it dv dv2, b-im+$r1 dr lpaol_ beim the “_wnulvv. & vé, $v2, &v4 He Grim * b_ im e Svs, svi, 4vé SVE, coves Srl dvs, $vd, $vy ve, $V2, V3 #4 ve *b_ veg arin” bain ~ # sve C-¥e j # atre *)h_im #_A+\m* b-ve = . = mF 6 hU©M’ » adlluv.s $vO gg Vo tvs A atve bint acink hive yay SVS enim, $d A she Cuim » _# bwe drt 0, eco # check if teh ‘Meratinn yada Syl byl #4y4 # Inevement the Bret : Mevation by 44 __j_ beop 2 Next Iteration else: addi dvb 4d vi gh64 ot inevernent the tirgk _ i - Iteration by 64 Slip: ble grt loop # next iteration [Pore C] Answer» Mulw: ¢ \v # Q.ve™ bre (assume obrendy Poastels) oad _o-im ‘ ie Lv mulvve dt boaol bh -im geim * b-im Cubvy. 4v # subback and glove .6-ve muvV3 lv a O-ve*bwim \oadl nex} Q-ve webv mul yy: l dt Geim * b-re bood next b-re vechy add vv. v # adol_and slove C-im Toto oi chime. Oxe reguireal ) x u a Inst BHh , exeeubal “in _baln systems : Au ope for ‘A’ i 2 OSS. fos Be So 2 0:26 . ’ 4s {yo Leads fe) 4D 0:28 for B= So BE ’ 4s (4 = Bramenes tor A’ re aS 2 O17, for Be 4D 20-28 5 ta 140. 4 cei(A 2 loss*V + (02873) + lon7* s) = 2:24 CPB) 2 (036*l) + (0:36*3) + (0.28*6)2 2-84 [Part Ps) : Answer: ee ee die Led tr hertra's Totab cycles per Storadion 2 L phim 2s * 64 elemend +1 cued (bool | Brore)™ 6 + cycde Caulk VY +S tycles Cada / ub) * 2 = 1h Cycles per vecsulk s 516 3 6y Question No-2 Answer: 4 Bloc frame Size = 16 bytes 2 4 double words. Nwm ber a, block. fxownes im Cathe 2 1b KBytes «lo2ry 16 Bytes : Number 1 Seles Number btoole Frames v A netativity = 1624 . 256 seh Tag Tse tbe Tag (26) 4 DWs 4 90 ae Es ‘ [ get 0 EET Come 4 4 L @ 2 4 x i emp 8 & sett —$§$ Hes eer eS ! ] I Y Set 26c| dk ee [esse Exomple = Sek 148 any tne, cfowbleworol 2 INE SR OO ee & g £ 2 AR C OD £ Jllooe) (ij) | ooo) $214

You might also like