Question: Consider a pipelined implementation of a processor like MIPS, with 5 stages. These are: Instruction fetch, decode, execute, memory ops and writeback to registers.

Consider a pipelined implementation of a processor like MIPS, with 5 stages. These are: Instruction fetch, decode, execute, memory ops and writeback to registers.

Consider a pipelined implementation of a processor like MIPS, with 5 stages. These are: Instruction fetch, decode, execute, memory ops and writeback to registers. Assume that each stage takes 1 machine cycle. a) Show with a figure, the data hazard which will occur for the se- quence of instructions: addu $s0, $a0, $a2 addu $s1, $s0, Sto And how it can be solved either by a bubble insertion or by data forwarding. b) One way of implementing new instructions in a processor is to use an undefined instruction and in the handler (invoked due to this exception) carry out the function associated with the new instruc- tion. We want to implement an instruction which will replace registers $a0 and $al with their sum and difference. Describe the events which will take place when this instruction is fetched and decoded and the handler code to implement

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!