From a59b67e4ee0bca90fc95b99b8d5dce55e29ebd01 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 1 Feb 2024 08:44:52 +0100 Subject: [PATCH] soc: Avoid .upper() on add_config/constant since already done in methods. --- litex/soc/integration/soc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 53c75a4fa..ad63ce048 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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" ]: