compat.fhdl.module: fix finalization of transformed compat submodules.
authorwhitequark <whitequark@whitequark.org>
Thu, 8 Aug 2019 07:45:34 +0000 (07:45 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 8 Aug 2019 07:45:34 +0000 (07:45 +0000)
commit5c626e33bfd213f74a4e47d95fa12f7c4e25ba2e
tree49a43d3068c7db65518abc9879fb6827bb6d0a82
parent1b379a513c1824d0e64bf73719c7aaf26b320787
compat.fhdl.module: fix finalization of transformed compat submodules.

Before this commit, the TransformedElaboratable of a CompatModule
would be ignored, and .get_fragment() would be used to retrieve
the CompatModule within.

After this commit, the finalization process is reworked to match
oMigen's finalization closely, and all submodules, native and compat,
are added in the same way that preserves applied transforms.
nmigen/compat/fhdl/module.py