Skip to content

Add reset functionality to the simulators #514

Description

@timsherwood

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions