soc/integration: ensure CSR constants are in uppercase
Fixup over commit 8be5824e
.
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
parent
427d7af767
commit
c8790d342a
|
@ -445,7 +445,8 @@ class SoCCore(Module):
|
||||||
|
|
||||||
# Add CSRs / Config items to constants
|
# Add CSRs / Config items to constants
|
||||||
for name, constant in self.csrbankarray.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)):
|
for name, value in sorted(self.config.items(), key=itemgetter(0)):
|
||||||
self.add_constant("CONFIG_" + name.upper(), value)
|
self.add_constant("CONFIG_" + name.upper(), value)
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
|
|
Loading…
Reference in New Issue