litex/migen/sim
Robert Jördens 55afab2276 sim: use Simulator as a contextmanager
__del__ garbage collector callbacks are too delicate.  E.g. imported
modules can be garbage collected before the objects using them. Can't
use os.remove, socket.SHUT_RDWR...

* added a DeprecationWarning if a Simulator is garbage collected without
having its .close() called
* renamed all gc __del__ callbacks to close()
* implemented context manager hooks for Simulator. Use like

   with Simulator(TestBench()) as s:
       s.run()
2013-11-29 23:05:15 +01:00
..
__init__.py sim: IPC module (lacks str/int encoding) 2012-03-03 18:55:38 +01:00
generic.py sim: use Simulator as a contextmanager 2013-11-29 23:05:15 +01:00
icarus.py sim: use Simulator as a contextmanager 2013-11-29 23:05:15 +01:00
ipc.py sim: use Simulator as a contextmanager 2013-11-29 23:05:15 +01:00