mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc: Avoid .upper() on add_config/constant since already done in methods.
This commit is contained in:
parent
e498a56698
commit
a59b67e4ee
1 changed files with 2 additions and 2 deletions
|
@ -1247,7 +1247,7 @@ class SoC(LiteXModule, SoCCoreCompat):
|
|||
if hasattr(self, "ctrl") and self.bus.timeout is not None:
|
||||
if hasattr(self.ctrl, "bus_error") and hasattr(self.bus._interconnect, "timeout"):
|
||||
self.comb += self.ctrl.bus_error.eq(self.bus._interconnect.timeout.error)
|
||||
self.add_config("BUS_STANDARD", self.bus.standard.upper())
|
||||
self.add_config("BUS_STANDARD", self.bus.standard)
|
||||
self.add_config("BUS_DATA_WIDTH", self.bus.data_width)
|
||||
self.add_config("BUS_ADDRESS_WIDTH", self.bus.address_width)
|
||||
self.add_config("BUS_BURSTING", int(self.bus.bursting))
|
||||
|
@ -1907,7 +1907,7 @@ class LiteXSoC(SoC):
|
|||
self.bus.add_slave(name=name, slave=spiflash_core.bus, region=spiflash_region)
|
||||
|
||||
# Constants.
|
||||
self.add_constant(f"{name}_MODULE_NAME", module.name.upper())
|
||||
self.add_constant(f"{name}_MODULE_NAME", module.name)
|
||||
self.add_constant(f"{name}_MODULE_TOTAL_SIZE", module.total_size)
|
||||
self.add_constant(f"{name}_MODULE_PAGE_SIZE", module.page_size)
|
||||
if mode in [ "4x" ]:
|
||||
|
|
Loading…
Reference in a new issue