diff --git a/litex/gen/context.py b/litex/gen/context.py index 8846283a1..3840c0ba5 100644 --- a/litex/gen/context.py +++ b/litex/gen/context.py @@ -19,9 +19,9 @@ class LiteXContext: platform : The FPGA Platform of the project. toolchain : The FPGA Toolchain to be used for synthesis and place-and-route. device : The FPGA Device of the LiteX project. - soc : The FPGA SoC of the LiteX project. + top : The FPGA Top-Level Module of the LiteX project. """ platform = None toolchain = None device = None - soc = None + top = None diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index e9ff4ba5e..1a938a56f 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -895,8 +895,8 @@ class SoC(LiteXModule, SoCCoreCompat): self.constants = {} self.csr_regions = {} - # Set SoC to LiteXContext. - LiteXContext.soc = self + # Set Top-Level to LiteXContext. + LiteXContext.top = self # SoC Bus Handler -------------------------------------------------------------------------- self.bus = SoCBusHandler(