diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 1fd7917f1..50ff64efb 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -530,6 +530,8 @@ class SoCCore(Module): self._constants.append(((name + "_" + constant.name).upper(), constant.value.value)) for name, value in sorted(self.config.items(), key=itemgetter(0)): self._constants.append(("CONFIG_" + name.upper(), value)) + if isinstance(value, str): + self._constants.append(("CONFIG_" + name.upper() + "_" + value, 1)) # Connect interrupts if hasattr(self, "cpu"):