I'm look for instruction set simulator for CPU based on RISC-V. I want to observe the hazard on different CPUs (RISCV and MIPS).
This example is for MIPS.
lw r1,A(r2)
lw r3,B(r4)
dadd r5,r1,r3
beq r5,r5,L1
sw r5,A(r3)
L1: sw r5,B(r4)
beq
must be stall (wait for r5)
Do you suggest any software simulator? I can write some instructions to simulate. For MIPS, I use WinMIPS64 (http://indigo.ie/~mscott/).