Question: Question 5: Basic pipeline branch determination A. In which stage is the branch instruction when its result is applied? 1. IF 2. ID 3. EX


Question 5: Basic pipeline branch determination A. In which stage is the branch instruction when its result is applied? 1. IF 2. ID 3. EX IF/ID ID/EX EX/MEM MEM/WB Add 4. MEM Add Add Shift result left 2 5. WB PC Address Read Instruction register 1 Read data 1 Read Zero Instruction register Registers Read ALU ALU Read memory Write result Address data 2 data register -X Ego Data Write memory data Write data 16 Sign- 32 extend IF ID EX MEM WBQuestion 5: Basic pipeline branch determination B. Fill in the pipeline for he following instructions (Note: instructions A, B, C, D, E, G are not branch instructions): A, B, beq G, C, D, E, G C. Assume beq G is taken. Does this program execute correctly? Why? Hint: beq G means jump to the instruction G D. What do you need to do (and when, i.e., which cycle) to get the correct behavior? Hint: What should happen to instructionsC, D, E 12 Cycle LI~ [ LI~ LI~ i L= L m x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
