Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. (8 points) The following is the MIPS code for computing the max(a,b) as in the slides in chapter 2. Assume a static predict branch
4. (8 points) The following is the MIPS code for computing the max(a,b) as in the slides in chapter 2. Assume a static predict branch not taken strategy with forwarding in the pipeline. Show the schedule for both a > b and b> a. predict not taken - ab 1 | 2 | 3 4 5 6 7 F|DX|MW 8 9 10 11 12 slt Sto, Sta, $tb bne $to, Szero, L add Stc, Sta, Szero j exit L add Stc, Stb, Szero exit predict not taken-b>a 7 | 8 | 9 | 10 | 11 | 12 1 | 2 | 3 4 5 6 FDXMW slt Sto, Sta, stb bne $to, Szero, L add $tc, Sta, Szero j exit L add $tc, Stb, Szero exit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started