mortbopet / Ripes

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

"Clock the circuit with the selected frequency" (F6) never stops #350

Closed gamberoillecito closed 4 months ago

gamberoillecito commented 5 months ago

Ripes version: v2.2.5-10-g976190d Bug description: running any program pressing the green arrow leaves the program in a state where it is always "re-run" from the beginning as soon as the .s file is edited. Furthermore most of the controls stop working.

After pressing the green arrow the only way I found to get the program back to normal is to restart it.

See the video below

https://github.com/mortbopet/Ripes/assets/42670032/92e1804c-d266-4eaa-9f14-90c400622657

stevenbell commented 4 months ago

I'm observing the same problem! I was able to hit pause while the code was in a loop to get it out of this behavior, but for straight-through code this isn't possible.

gamberoillecito commented 4 months ago

@stevenbell the best solution I found so far is the following (sort of GTA cheat code, i.e. you need to press the buttons really fast): "<" πŸ”„πŸ”„βΈοΈβΈοΈπŸ”„ or with the keyboard F4, F3, F3, F6, F6, F3 I was able to reset the processor even for a program with 4 instructions @ 30ms

mortbopet commented 4 months ago

I'm able to reproduce this for v2.2.6, but it doesn't seem to reproduce for the continuous release nor on WASM so it might have been fixed in the meantime. Would you mind trying out one of those to check if the issue is still there?

stevenbell commented 4 months ago

Indeed, it seems to be fixed in g027e678 !

gamberoillecito commented 4 months ago

@mortbopet it seems to be solved in 8780873