From c8790d342a66fbee9301403f73eea0a894a05172 Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Tue, 1 Oct 2019 12:14:33 -0400 Subject: [PATCH] soc/integration: ensure CSR constants are in uppercase Fixup over commit 8be5824e. Signed-off-by: Gabriel Somlo --- litex/soc/integration/soc_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 33be3dab4..d991d703f 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):