def reset(self):
        """Reset the simulation.

        This method reverts the simulation to its initial state:

        * The value of each signal is changed to its initial value;
        * The contents of each memory is changed to its initial contents;
        * Each clock, testbench, and process is restarted.
        """
        self._engine.reset()
        self._running = False
Reset the simulation.

        This method reverts the simulation to its initial state:

        * The value of each signal is changed to its initial value;
        * The contents of each memory is changed to its initial contents;
        * Each clock, testbench, and process is restarted.
        
amaranth/sim/core.py