SHARE
TWEET

Untitled

a guest Oct 1st, 2019 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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):
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top