An instruction pipeline consists of following 5 stages: IF = Instruction Fetch, ID = Instruction Decode, EX = Execute, MA = Memory Access and WB = Register Write Back. Consider the following code: 1. LOAD R. [1000] Ry 4(R,) Ry R. R3 Ry Rq. R, R Ry, R3 R = Memory [1000] R = Memory [R,+ 4] R = R, x Rg R, = R, + R, R, = R4- R, %3D 2. LOAD %3D 3. MUL 4. DIV 5. SUB Assume that each stage takes 1 clock cycle for all the instructions. The number of cycles saved to execute the code, by using operand forwarding over a without operand forwarding is

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Computer architecture subject

An instruction pipeline consists of following 5 stages:
IF = Instruction Fetch, ID = Instruction Decode, EX = Execute,
MA = Memory Access and WB = Register Write Back.
Consider the following code:
1. LOAD
2. LOAD
R, [1000]
Ry 4(R,)
Ry Ry. R3
Ry R, R.
R, Ry R3
R = Memory [1000]
R3 = Memory [R, + 4]
R = R, x R3
R3 = R, + R,
R = R4- R3
%3D
3. MUL
4. DIV
5. SUB
Assume that each stage takes 1 clock cycle for all the instructions. The number of cycles saved to execute the code, by using operand
forwarding over a without operand forwarding is
Transcribed Image Text:An instruction pipeline consists of following 5 stages: IF = Instruction Fetch, ID = Instruction Decode, EX = Execute, MA = Memory Access and WB = Register Write Back. Consider the following code: 1. LOAD 2. LOAD R, [1000] Ry 4(R,) Ry Ry. R3 Ry R, R. R, Ry R3 R = Memory [1000] R3 = Memory [R, + 4] R = R, x R3 R3 = R, + R, R = R4- R3 %3D 3. MUL 4. DIV 5. SUB Assume that each stage takes 1 clock cycle for all the instructions. The number of cycles saved to execute the code, by using operand forwarding over a without operand forwarding is
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY