Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question Not yet answered Marked out of 1.00 Consider the following diagram of t

ID: 3594024 • Letter: Q

Question

Question Not yet answered Marked out of 1.00 Consider the following diagram of the fetch stage M icode M Cnd M valA stat licode ifunA rB W icode W valM Flag question stat PC Need valC Instr valid PC Need increment icodeifun Split Byte 0 Bytes 1-9 mem error t pc PC Consider the SelectPC combinational logic circuit that is used to choose a value for f pc. What is the M_valA value chosen by SelectPC? Select one O a. Assuming M_icode is a call then M valA is the target of that jne O b. It is the address of the instruction in the M register. O C. Assuming M_icode is a jmp then M_valA is the target of that jne d. It is the address of the instruction that sequentially follows the instruction in M-code e. Assuming M_icode is a jne then M_valA is the target of that jne

Explanation / Answer

SelectPC attempts to predict which instruction will be the next.Start fetch of new instruction after current has been fetched.If the prediction is incorrect then recovery is needed.

ans:Assuming M_icode is a jne then M_valA is the target of that jne

MisPredicted Jump:correct onlyif the jump is taken,will see the branch conditional flag once the instruction reaches memory stage.

can get the value from M_valA,will get return PC when ret reaches write back stage W_valM

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote