✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider a RISC-V architecture of 6 states IF, ID, EX1,EX2,M,WB where the new stage EX2 is due to the multiplication operation (mul). This operation takes two cycles. Thus, the adition/substraction/logical operations take one cycle (and calculate the result in the EX1 stage) whereas de multiplication calculte its result in EX2.
Calculate the execution time (in ns.) for the next code, assuming that the processor has the configuration (0) and a hazard unit to insert as many bubbles as required. The cycle time is 21 ns.add $1,$26,$21mul $10, $28, $1sub $21, $28,$10
or $25, $10,$21
CONFIGURATIONS:
(0) --> By pases EX1-EX1, EX2-EX1, M-EX1, RF (Regiter File)
(1) --> Only in RF
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!