Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 6. Consider the 5-stage pipeline with data forwarding and hazard detection as shown below. The signals forwardA and forwardB are used to select the

image text in transcribed

Problem 6. Consider the 5-stage pipeline with data forwarding and hazard detection as shown below. The signals forwardA and forwardB are used to select the data forwarding for the 1st and 2nd inputs of the ALU. The relation between their value and the data that they forward are specified in the table. (a) In order to test the CPU, you were asked to design a sequence of MIPS instructions that will set signal forwardA to 01 and 10 in cycle 4 and cycle 5 respectively, and set signal forwardB to 01 and 10 in cycle 5 and cycle 6 respectively. Assume that the first instruction in your sequence is fetched in cycle 1, and before that the processor is executing NOP. Show your assembly program (b) In order to test the read and write of the data memory, you are again asked to modify the instruction sequence in (a) to also generate a data memory read in cycle 5. Please give the modified assembly code. If you think this request is not doable, explain why. Imm26 Forward ALU result - Instruction Memory Instructio RS Instruction ALU result Register File CXED Address Data Memory Data in WriteData Address Rd 8 PCWrite IF/IDWrit Forward Forwarding, Hazard Detection, and Stall Unit Bubble MemRead 0 Main Control NEM Value of forward A/forwardB 00 01 Function Forward register output to ALU input Forward data from ALU output back to ALU input Forward data from Mem stage back to ALU input 10 Problem 6. Consider the 5-stage pipeline with data forwarding and hazard detection as shown below. The signals forwardA and forwardB are used to select the data forwarding for the 1st and 2nd inputs of the ALU. The relation between their value and the data that they forward are specified in the table. (a) In order to test the CPU, you were asked to design a sequence of MIPS instructions that will set signal forwardA to 01 and 10 in cycle 4 and cycle 5 respectively, and set signal forwardB to 01 and 10 in cycle 5 and cycle 6 respectively. Assume that the first instruction in your sequence is fetched in cycle 1, and before that the processor is executing NOP. Show your assembly program (b) In order to test the read and write of the data memory, you are again asked to modify the instruction sequence in (a) to also generate a data memory read in cycle 5. Please give the modified assembly code. If you think this request is not doable, explain why. Imm26 Forward ALU result - Instruction Memory Instructio RS Instruction ALU result Register File CXED Address Data Memory Data in WriteData Address Rd 8 PCWrite IF/IDWrit Forward Forwarding, Hazard Detection, and Stall Unit Bubble MemRead 0 Main Control NEM Value of forward A/forwardB 00 01 Function Forward register output to ALU input Forward data from ALU output back to ALU input Forward data from Mem stage back to ALU input 10

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

4. EMC Corporation

Answered: 1 week ago

Question

6. Vanguard

Answered: 1 week ago