mortbopet/Ripes

Ripes does not compute correctly using nop or addi x0, x0, 0

LukasJahn2001 opened this issue · 0 comments

Hi,

I wanted to add nops to my code for comparing the execution of a pipelined CPU without forwarding/hazard detection and with both of it. When I tested this ripes.txt it did not run correctly on both single cycle and pipeline with forwarding/hazard detection. When I went step by step through the code the line 26 (sub) did not compute at all.
I replaced the nops with addi x0, x0, 0 and got the same mistake. By adding more nops it starts to work again.

(I found my mistake and closed the issue.)

Best
Lukas