Page 1 of 1

16. Use 2-bits prediction scheme and determine accuracy rate by starting from WEAKLY NOT TAKEN condition if L1 loop is t

Posted: Fri Jul 01, 2022 5:53 am
by answerhappygod
16 Use 2 Bits Prediction Scheme And Determine Accuracy Rate By Starting From Weakly Not Taken Condition If L1 Loop Is T 1
16 Use 2 Bits Prediction Scheme And Determine Accuracy Rate By Starting From Weakly Not Taken Condition If L1 Loop Is T 1 (266.57 KiB) Viewed 37 times
16. Use 2-bits prediction scheme and determine accuracy rate by starting from WEAKLY NOT TAKEN condition if L1 loop is taken 10 times. REFER L1: R1=0 R2=99 L2: BEQ R1,R2, L1 **** ADD R1, R1,1 JUMP L2 **** Predict Tak 11 Predict Not 01 Taken NT NT NT T 10 NT Saturated states Predict Taken a) 985/1000 b) 990/1000 c) 995/1000 d) 980/1000 e) 998/1000 f) 997/1000
Assembly-2: .DATA data1 dd 01234567h data2 dd ? .CODE MOV AX,@DATA MOV DS,AX MOV CX, 4 MOV SI, offset data1 MOV DI, offset data2+3 L1: MOV AL,[SI] MOV [DI],AL ADD SI,1 ADD DI,-1 LOOP L1 END the Assembly-2 below.