projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
427d7af
)
soc/integration: ensure CSR constants are in uppercase
author
Gabriel Somlo
<gsomlo@gmail.com>
Tue, 1 Oct 2019 16:14:33 +0000
(12:14 -0400)
committer
Gabriel Somlo
<gsomlo@gmail.com>
Tue, 1 Oct 2019 16:15:25 +0000
(12:15 -0400)
Fixup over commit
8be5824e
.
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/integration/soc_core.py
patch
|
blob
|
history
diff --git
a/litex/soc/integration/soc_core.py
b/litex/soc/integration/soc_core.py
index 33be3dab446fbfe6ccece4c45904837be3d25fc9..d991d703fb36e4dccbdad61a87f9d83d9cb786dd 100644
(file)
--- 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):