Currently there is no easy way to reset the simulators other than reaching in and setting the bits of the registers and memories to specific values. When running multiple simulations on the same hardware it would be very helpful to have an easy way to return the system back to some predetermined state. Suggest adding a reset method to each simulator that returns all registers back to their reset_value (which is already a known value for registers).
There is a question about dealing with memories. For testing it is useful to return everything to some true ground state (e.g. memories to zero, or memories to some other per-defined state with (for example) a program loaded in). For simulating a soft-reset it might be helpful to also be able to reset just the registers leaving the memory in place but this is lower priority.
Currently there is no easy way to reset the simulators other than reaching in and setting the bits of the registers and memories to specific values. When running multiple simulations on the same hardware it would be very helpful to have an easy way to return the system back to some predetermined state. Suggest adding a
resetmethod to each simulator that returns all registers back to theirreset_value(which is already a known value for registers).There is a question about dealing with memories. For testing it is useful to return everything to some true ground state (e.g. memories to zero, or memories to some other per-defined state with (for example) a program loaded in). For simulating a soft-reset it might be helpful to also be able to reset just the registers leaving the memory in place but this is lower priority.