3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-14 03:05:41 +00:00

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

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(