mirror of https://github.com/YosysHQ/yosys.git
Modified pyosys generator.py to support constexpr
This commit is contained in:
parent
58fc67ee66
commit
1dbefdbd49
|
|
@ -631,7 +631,7 @@ class PyosysWrapperGenerator(object):
|
||||||
self.register_containers(variable)
|
self.register_containers(variable)
|
||||||
|
|
||||||
definition_fn = (
|
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(
|
variable_python_basename = keyword_aliases.get(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue