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:
parent
58fc67ee66
commit
1dbefdbd49
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue