litex/migen
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
..
actorlib actorlib/spi/DMAWriteController: make ack_when_inactive a keyword-only arg 2013-11-02 23:21:05 +01:00
bank replace use of __dict__ with dir()/xdir() 2013-11-02 16:03:47 +01:00
bus bus/wishbone/sram: expose memory component 2013-11-24 23:43:14 +01:00
fhdl fhdl/structure: clarify usage restrictions of LHS Cat 2013-11-29 22:35:53 +01:00
flow flow/isd: update to new APIs 2013-11-20 17:45:09 +01:00
genlib genlib.fifo: fix docstring section syntax 2013-11-29 22:31:51 +01:00
pytholite replace use of __dict__ with dir()/xdir() 2013-11-02 16:03:47 +01:00
sim sim: use Simulator as a contextmanager 2013-11-29 23:05:15 +01:00
util util: add missing __init__.py 2013-11-04 21:22:02 +01:00
__init__.py Initial import, FHDL basic structure, divider example 2011-12-04 16:44:38 +01:00