From: Gabriel Somlo Date: Tue, 1 Oct 2019 16:14:33 +0000 (-0400) Subject: soc/integration: ensure CSR constants are in uppercase X-Git-Tag: 24jan2021_ls180~948^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8790d342a66fbee9301403f73eea0a894a05172;p=litex.git soc/integration: ensure CSR constants are in uppercase Fixup over commit 8be5824e. Signed-off-by: Gabriel Somlo --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 33be3dab..d991d703 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -445,7 +445,8 @@ class SoCCore(Module): # Add CSRs / Config items to constants for name, constant in self.csrbankarray.constants: - self.add_constant(name + "_" + constant.name, constant.value.value) + self.add_constant(name.upper() + "_" + constant.name.upper(), + constant.value.value) for name, value in sorted(self.config.items(), key=itemgetter(0)): self.add_constant("CONFIG_" + name.upper(), value) if isinstance(value, str):