mortbopet / Ripes

A graphical processor simulator and assembly editor for the RISC-V ISA
https://ripes.me/
MIT License
2.57k stars 274 forks source link

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

Closed LukasJahn2001 closed 3 months ago

LukasJahn2001 commented 3 months ago

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