hdl.ir: allow returning elaboratables from missing domain callback.
authorwhitequark <whitequark@whitequark.org>
Sat, 3 Aug 2019 15:44:02 +0000 (15:44 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 3 Aug 2019 15:44:02 +0000 (15:44 +0000)
commitcea92e95314e882059b8380c8253f34c46c9a8b0
tree264d59d82f31c106e56029129a14897b6aba6305
parentfc846532c7090687f6de32c8c36f1d805c291c30
hdl.ir: allow returning elaboratables from missing domain callback.

This allows e.g. injecting a clock/reset generator in platform build
code on demand (i.e. if the domain is not instantiated manually).

See #57.
nmigen/hdl/ir.py
nmigen/test/test_hdl_ir.py