Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the MIPS assembly language program given below ox40001000 beg $s0, $81, 0x40001004 0x40001008 0x4000100C add $t1, $t2, $t3 addi $t7, $t7, -4 0x40001010 next
Consider the MIPS assembly language program given below ox40001000 beg $s0, $81, 0x40001004 0x40001008 0x4000100C add $t1, $t2, $t3 addi $t7, $t7, -4 0x40001010 next equal: 0x40001014 sub St1, $t2, $t3 0x40001018 0x40001014 addi s an next: Assume that the pipelined MIPS uses static branch prediction to reduce the number of pipeline stalls due to branch hazards. Assume that $s0 = 0x0000000D and $s1-0x0000000E. (a) How many instructions must be flushed from the pipeline if all branches are predicted to be TAKEN (b) How many instructions must be flushed from the pipeline if all branches are predicted to be NOT TAKEN ) If the branch decision logic is moved to the ID stage of the pipeline, how many instructions must be flushed from the pipeline when the branch is mispredicted
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