Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py
- index 33be3dab..079614ef 100644
- --- a/litex/soc/integration/soc_core.py
- +++ b/litex/soc/integration/soc_core.py
- @@ -445,7 +445,7 @@ 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):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement