gen/common/LiteXModule: Also inherit from AutoDoc.

This commit is contained in:
Florent Kermarrec 2022-10-27 15:52:21 +02:00
parent a71fd1d31b
commit f8702d744f
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ from migen.fhdl.module import _ModuleProxy
from migen.fhdl.specials import Special from migen.fhdl.specials import Special
from litex.soc.interconnect.csr import AutoCSR from litex.soc.interconnect.csr import AutoCSR
from litex.soc.integration.doc import AutoDoc
# Bit/Bytes Reversing ------------------------------------------------------------------------------ # Bit/Bytes Reversing ------------------------------------------------------------------------------
@ -23,7 +25,7 @@ def reverse_bytes(s):
# LiteX Module ------------------------------------------------------------------------------------- # LiteX Module -------------------------------------------------------------------------------------
class LiteXModule(Module, AutoCSR): class LiteXModule(Module, AutoCSR, AutoDoc):
def __setattr__(m, name, value): def __setattr__(m, name, value):
# Migen: # Migen:
if name in ["comb", "sync", "specials", "submodules", "clock_domains"]: if name in ["comb", "sync", "specials", "submodules", "clock_domains"]: