Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question1: [15 marks) In this exercise, we examine how the ISA affects pipeline design. Problems in this exercise refer to the following new instruction: Bezi

image text in transcribed
Question1: [15 marks) In this exercise, we examine how the ISA affects pipeline design. Problems in this exercise refer to the following new instruction: Bezi (RS), offset If Mem[Rs] =0 then PC = PC + offset Swi Rd, Rs(Rt) Mem [Rs +Rt] = Rd a. What must be changed in the pipelined datapath to add this instruction to the MIPS ISA? b. Which new control signals must be added to your pipeline? c. Does support for this instruction introduce any new hazards? Are stalls due to existing hazards made worse? Question2: [15 marks We have studied multi-cycle MIPS as shown below with datapath and control unit. Forwarding unit and Data-hazard detection unit is also implemented. The calculation for the branch instruction has been moved to decode stage which helps to reduce the number of stalls from 3 to 1 due to control hazard. But this move affects the existing forwarding logic. Consider the following two cases. add R1, R1, 8 beq R1, R2, 30 ld R1, R3, 4 beq R1, R2, 30 In class we have only implemented exe to exe and mem to exe forwarding but in these cases we may need to extend forwarding so that we can forward to decode stage as well. Analyze above two cases and design a new unit in decodes stage that will cater these cases. Draw the changes required in the below MIPS architecture along with addition in the detection and forwarding logic. Question1: [15 marks) In this exercise, we examine how the ISA affects pipeline design. Problems in this exercise refer to the following new instruction: Bezi (RS), offset If Mem[Rs] =0 then PC = PC + offset Swi Rd, Rs(Rt) Mem [Rs +Rt] = Rd a. What must be changed in the pipelined datapath to add this instruction to the MIPS ISA? b. Which new control signals must be added to your pipeline? c. Does support for this instruction introduce any new hazards? Are stalls due to existing hazards made worse? Question2: [15 marks We have studied multi-cycle MIPS as shown below with datapath and control unit. Forwarding unit and Data-hazard detection unit is also implemented. The calculation for the branch instruction has been moved to decode stage which helps to reduce the number of stalls from 3 to 1 due to control hazard. But this move affects the existing forwarding logic. Consider the following two cases. add R1, R1, 8 beq R1, R2, 30 ld R1, R3, 4 beq R1, R2, 30 In class we have only implemented exe to exe and mem to exe forwarding but in these cases we may need to extend forwarding so that we can forward to decode stage as well. Analyze above two cases and design a new unit in decodes stage that will cater these cases. Draw the changes required in the below MIPS architecture along with addition in the detection and forwarding logic

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

Step: 3

blur-text-image

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

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago