Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the execution of the following sequence of four instructions on a five - stage pipelined processor which uses the always - not - taken

Consider the execution of the following sequence of four instructions on a five-stage pipelined processor which uses the always-not-taken strategy for branch prediction and has both the forwarding unit and hazard detection unit.
add x12, x6, x5
sub x10, x11, x12
beq x11, x12, LABEL
sd x11,0(x12)
Suppose the third instruction is detected to have an invalid target address and cause an exception in the ID stage. Fill in the following table by showing what instructions are in the IF, ID, EX, MEM and WB stages. Note that each instruction in your answer should be one chosen from the given four instructions, the NOP instruction (or bubble), and the first instruction of the exception \table[[,IF,ID,EX,MEM,WB],[Cycle 1,,-,-,-,-],[Cycle 2,,,-,-,-],[Cycle 3,,,,-,-],[Cycle 4,,,,,-],[Cycle 5,,,,,]]handler
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logidata+ Deductive Databases With Complex Objects Lncs 701

Authors: Paolo Atzeni

1st Edition

354056974X, 978-3540569749

Students also viewed these Databases questions

Question

Context, i.e. the context of the information presented and received

Answered: 1 week ago