RISC-V Pipelines computer arcitecrure

RISC-V Pipelines(5pts) 1. For the following questions consider the code segment below.1234567a d d ia d d iLoop : l da d d ib l ts dx19 , x0 , 0 ;x20 , x0 , 3 2 ;x21 , 0 ( x19 ) ;x19 , x19 , 8 ;x19 , x20 , Loop ;x21 , 0 ( x19 )(1 pts) 1.a Write what the contents of each of the registers (i.e. x19, x20, x21) will be after thefirst iteration.(1 pts) 1.b Write what the contents of each of the registers (i.e. x19, x20, x21) will be after thesecond iteration.University of South Florida 1 Computer Architecture Lab

CDA 4205L Page 2 of 5(1 pts) 1.c Write what the contents of each of the registers (i.e. x19, x20, x21) will be after thethird iteration.(1 pts) 1.d Write what the contents of each of the registers (i.e. x19, x20, x21) will be after thefourth iteration.(1 pts) 1.e After the fourth iteration, line 6 will be executed. What memory address will thecontents of register x21 be stored at? What will be the contents of x21?University of South Florida 2 Computer Architecture Lab

CDA 4205LModern Branch PredictionsPage 3 of 5For this section we will consider both the 1-bit and 2-bit branch predictor. For the followingquestions use the finite state machines below.Figure 1. 1-Bit PredictorFigure 2. 2-Bit PredictorUniversity of South Florida 3 Computer Architecture Lab

CDA 4205L(2pts) 2. For the following questions consider the branch outcomes given below.Branch Outcome 1-Bit PredictorTTNTNTTTNNTNNNTNTNTTPage 4 of 5(1 pts) 2.a Assume that the initial state of the 1-bit predictor is Not Taken. What is the branchprediction rate?(1 pts) 2.b Assume that the initial state of the 1-bit predictor is Taken. What is the branch pre-diction rate?University of South Florida 4 Computer Architecture Lab

CDA 4205L(3pts) 3. For the following questions consider the branch outcomes given below.Branch Outcome 2-Bit PredictorTTNTNTTTNNTNNNTNTNTTPage 5 of 5(1 pts) 3.a Assume that the initial state of the 2-bit predictor is 11. What is the branch predictionrate?(1 pts) 3.b Assume that the initial state of the 2-bit predictor is 00. What is the branch predictionrate?(1 pts) 3.c Assume that the initial state of the 2-bit predictor is 10. What is the branch predictionrate?v