hdl.ir: detect elaboratables that are created but not used.
authorwhitequark <whitequark@whitequark.org>
Sun, 21 Apr 2019 08:52:57 +0000 (08:52 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 21 Apr 2019 08:52:57 +0000 (08:52 +0000)
commit44711b7d085074bc82085b60215909c900372553
treeeda107b0b3cd333bb1c471917c2cb668bd8556cd
parent85ae99c1b47931d51422ed9ac6bf24bec5fb7fc9
hdl.ir: detect elaboratables that are created but not used.

Requres every elaboratable to inherit from Elaboratable, but still
accepts ones that do not, with a warning.

Fixes #3.
22 files changed:
examples/alu.py
examples/alu_hier.py
examples/arst.py
examples/ctr.py
examples/ctr_ce.py
examples/fsm.py
examples/gpio.py
examples/inst.py
examples/mem.py
examples/pmux.py
nmigen/__init__.py
nmigen/hdl/dsl.py
nmigen/hdl/ir.py
nmigen/hdl/mem.py
nmigen/hdl/xfrm.py
nmigen/lib/cdc.py
nmigen/lib/coding.py
nmigen/lib/fifo.py
nmigen/test/__init__.py
nmigen/test/test_hdl_xfrm.py
nmigen/test/test_lib_coding.py
nmigen/test/test_lib_fifo.py