Skip to content

Commit

Permalink
Merge pull request #152 from srivatsansoft/test
Browse files Browse the repository at this point in the history
updated doc for the new public method sim.quit()
  • Loading branch information
jandecaluwe committed Mar 3, 2016
2 parents 28533d2 + 8e69e0f commit 36bb450
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/source/manual/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ A :class:`Simulation` object has the following method:
Run the simulation forever (by default) or for a specified duration.


.. method:: Simulation.quit()

Quit the simulation after it has run for a specified duration. The method should
be called (the simulation instance must be quit) before another simulation
instance is created. The method is called by default when the simulation is run
forever.


.. _ref-simsupport:

Simulation support functions
Expand Down
1 change: 1 addition & 0 deletions example/cookbook/dff/dff.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def simulate(timesteps):
tb = traceSignals(test_dff)
sim = Simulation(tb)
sim.run(timesteps)
sim.quit()

simulate(2000)

Expand Down
1 change: 1 addition & 0 deletions example/cookbook/dffa/dffa.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def simulate(timesteps):
tb = traceSignals(test_dffa)
sim = Simulation(tb)
sim.run(timesteps)
sim.quit()

simulate(20000)

Expand Down
1 change: 1 addition & 0 deletions example/cookbook/latch/latch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def simulate(timesteps):
tb = traceSignals(test_latch)
sim = Simulation(tb)
sim.run(timesteps)
sim.quit()

simulate(20000)

Expand Down

0 comments on commit 36bb450

Please sign in to comment.