compat.fhdl.module: fix finalization of transformed compat submodules.
authorwhitequark <cz@m-labs.hk>
Thu, 8 Aug 2019 07:45:34 +0000 (07:45 +0000)
committerwhitequark <cz@m-labs.hk>
Thu, 8 Aug 2019 07:45:34 +0000 (07:45 +0000)
commitdc0461d40fd61da2bdb1bcdf8153a4ba830ca6a0
tree49a43d3068c7db65518abc9879fb6827bb6d0a82
parent8d33816da5dec353b7849bd89185bf0d43d9d840
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