gen/context: Rename soc to top.

This commit is contained in:
Florent Kermarrec 2023-11-03 11:05:36 +01:00
parent 27c55999c6
commit 4497569118
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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(