From f8702d744f40666b2621490923965ccfe3814f90 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 27 Oct 2022 15:52:21 +0200 Subject: [PATCH] gen/common/LiteXModule: Also inherit from AutoDoc. --- litex/gen/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex/gen/common.py b/litex/gen/common.py index ac14a4020..f4ab41029 100644 --- a/litex/gen/common.py +++ b/litex/gen/common.py @@ -9,6 +9,8 @@ from migen.fhdl.module import _ModuleProxy from migen.fhdl.specials import Special from litex.soc.interconnect.csr import AutoCSR +from litex.soc.integration.doc import AutoDoc + # Bit/Bytes Reversing ------------------------------------------------------------------------------ @@ -23,7 +25,7 @@ def reverse_bytes(s): # LiteX Module ------------------------------------------------------------------------------------- -class LiteXModule(Module, AutoCSR): +class LiteXModule(Module, AutoCSR, AutoDoc): def __setattr__(m, name, value): # Migen: if name in ["comb", "sync", "specials", "submodules", "clock_domains"]: