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

  • Thread starter Thread starter jdoe10
  • Start date Start date
  • Tags Tags
    Mips
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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.