Advertisement
Guest User

Untitled

a guest
Oct 1st, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.70 KB | None | 0 0
  1. diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py
  2. index 33be3dab..079614ef 100644
  3. --- a/litex/soc/integration/soc_core.py
  4. +++ b/litex/soc/integration/soc_core.py
  5. @@ -445,7 +445,7 @@ class SoCCore(Module):
  6.  
  7.          # Add CSRs / Config items to constants
  8.          for name, constant in self.csrbankarray.constants:
  9. -            self.add_constant(name + "_" + constant.name, constant.value.value)
  10. +            self.add_constant(name.upper() + "_" + constant.name.upper(), constant.value.value)
  11.          for name, value in sorted(self.config.items(), key=itemgetter(0)):
  12.              self.add_constant("CONFIG_" + name.upper(), value)
  13.              if isinstance(value, str):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement