Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raws on ID stage and they should be on EX. #5

Open
AndoniZubimendi opened this issue Nov 6, 2020 · 0 comments
Open

Raws on ID stage and they should be on EX. #5

AndoniZubimendi opened this issue Nov 6, 2020 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@AndoniZubimendi
Copy link
Owner

Running this program with forwarding

.data
n1: .double 9.13
n2: .double 6.58
res1: .double 0.0
res2: .double 0.0

.code
l.d f1, n1(r0)
l.d f2, n2(r0)
add.d f3, f2, f1
mul.d f1, f2, f1
mul.d f4, f2, f1
s.d   f3, res1(r0)
s.d   f4, res2(r0)
halt

Results in the instruction s.d f4, res2(r0) having 4 RAWs in ID, and 5 RAWs in EX. If The f4 operand is needed on MEM stage, all the RAWs should be on EX. There seems to be a relation between the RAWs of the mul.d f4,f2,f1 instruction and the RAWs on ID stage.

Or am I wrong?

Raws

@AndoniZubimendi AndoniZubimendi self-assigned this Nov 6, 2020
@AndoniZubimendi AndoniZubimendi added the help wanted Extra attention is needed label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant