Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IDEX WB EX/MEM WB Control M MEMWB WB IF/ID EX Instruction Registers ALU Pc Instruction memory Data memory IF/ID. RegisterRs IF/ID.Register F/ID. Registert IF/ID. RegisterRd

image text in transcribedimage text in transcribed

IDEX WB EX/MEM WB Control M MEMWB WB IF/ID EX Instruction Registers ALU Pc Instruction memory Data memory IF/ID. RegisterRs IF/ID.Register F/ID. Registert IF/ID. RegisterRd Rs Rt RI Rd EXMEM. Register ! Forwarding unit MEMWB.Registered Question 6 (10 marks) Consider the same datapath in Question 5, how can the register file be modified to resolve the data dependence between the first and fourth instructions in the following program? To demonstrate this modification, design a register file containing four two-bit registers. Time (in clock cycles) Value of CC 1 CC 2 CC 3 CC 4 CC 5 CC 6 CC 7 CC 8 CC 9 register $2: 10 10 107-20 -20 -20 -20 Program execution order (in instructions) 10 10 -20 sub $2, $1, $3 IM DM Regi and $12, $2, $5 IM Reg DM or $13, $6, $2 IM Reg! DM add $14, $2,$2 IM Reg sw $15, 100($2) IM Reg Reg IDEX WB EX/MEM WB Control M MEMWB WB IF/ID EX Instruction Registers ALU Pc Instruction memory Data memory IF/ID. RegisterRs IF/ID.Register F/ID. Registert IF/ID. RegisterRd Rs Rt RI Rd EXMEM. Register ! Forwarding unit MEMWB.Registered Question 6 (10 marks) Consider the same datapath in Question 5, how can the register file be modified to resolve the data dependence between the first and fourth instructions in the following program? To demonstrate this modification, design a register file containing four two-bit registers. Time (in clock cycles) Value of CC 1 CC 2 CC 3 CC 4 CC 5 CC 6 CC 7 CC 8 CC 9 register $2: 10 10 107-20 -20 -20 -20 Program execution order (in instructions) 10 10 -20 sub $2, $1, $3 IM DM Regi and $12, $2, $5 IM Reg DM or $13, $6, $2 IM Reg! DM add $14, $2,$2 IM Reg sw $15, 100($2) IM Reg Reg

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions