Modified pyosys generator.py to support constexpr

This commit is contained in:
Michael Baier 2026-07-09 16:32:01 +02:00
parent 58fc67ee66
commit 1dbefdbd49
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ class PyosysWrapperGenerator(object):
self.register_containers(variable)
definition_fn = (
f"def_{'readonly' if variable.type.const else 'readwrite'}_static"
f"def_{'readonly' if (variable.type.const or variable.constexpr) else 'readwrite'}_static"
)
variable_python_basename = keyword_aliases.get(