MIPS Pipelining Help: Filling the Timeline w/ & w/o Forwarding

  • Thread starter Thread starter jdoe10
  • Start date Start date
  • Tags Tags
    Mips
Click For Summary
SUMMARY

The discussion focuses on MIPS pipelining, specifically analyzing the assembly code involving load and add instructions with and without forwarding. The assembly code provided includes the instructions LW R1, 0(R2), add R4, R3, R1, and add R3, R1, R4. Participants seek clarification on filling the pipelining timeline correctly under both scenarios. Key resources mentioned for further understanding include "MIPS Assembly Language Programming" by Robert Britton and "Computer Organization and Design" by Patterson and Hennessy.

PREREQUISITES
  • Understanding of MIPS assembly language syntax
  • Knowledge of pipelining concepts in computer architecture
  • Familiarity with data hazards and forwarding techniques
  • Basic proficiency in analyzing instruction dependencies
NEXT STEPS
  • Study MIPS pipelining techniques in "MIPS Assembly Language Programming" by Robert Britton
  • Learn about data hazards and how to resolve them using forwarding
  • Explore the impact of pipelining on performance in "Computer Organization and Design" by Patterson and Hennessy
  • Practice filling pipelining timelines with various assembly code examples
USEFUL FOR

Students and professionals in computer science, particularly those studying computer architecture, MIPS programming, or anyone involved in optimizing instruction execution in pipelined processors.

jdoe10
Messages
3
Reaction score
0

Homework Statement


Assembly Code:
LW R1, 0(R2)
add R4, R3, R1
add R3, R1, R4
What are the dependencies
Fill the pipelining timeline if:
a. There is forwarding
b. There is no forwarding

Homework Equations


N/A

The Attempt at a Solution


With forwarding attempt:
A7YtB.png

Without forwarding attempt:
9l320.png

Am I filling the pipelining timeline correctly?
 
Physics news on Phys.org
jdoe10 said:

Homework Statement


Assembly Code:
LW R1, 0(R2)
add R4, R3, R1
add R3, R1, R4
What are the dependencies
Fill the pipelining timeline if:
a. There is forwarding
b. There is no forwarding

Homework Equations


N/A

The Attempt at a Solution


With forwarding attempt:
A7YtB.png

Without forwarding attempt:
9l320.png

Am I filling the pipelining timeline correctly?
Are you working from a textbook? There are only two that I am aware of: "MIPS Assembly language Programming," by Robert Britton, and "Computer Organization and Design: The Hardware/Software Interface," by Patterson and Hennessey. Chapter 10 in the Britton book, which I have, discusses pipelined implementations. I don't have the other book, so can't comment on it.
As far as your question, I'm in the process of learning MIPS programming, but I'm not up to speed on the forwarding business just yet.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
19
Views
4K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K