_yosys: translate Yosys warnings to Python warnings.

This isn't used yet (the only Yosys warning we can get is useless),
but will be handy for CXXRTL.
This commit is contained in:
whitequark 2020-06-11 16:12:52 +00:00
parent a7b8ced92c
commit bddec3741e
2 changed files with 24 additions and 11 deletions

View file

@ -38,7 +38,11 @@ write_verilog -norename {write_verilog_opts}
prune="# " if yosys_version < (0, 9, 231) else "",
attr_map=" ".join(attr_map),
write_verilog_opts=" ".join(write_verilog_opts),
))
),
# At the moment, Yosys always shows a warning indicating that not all processes can be
# translated to Verilog. We carefully emit only the processes that *can* be translated, and
# squash this warning. Once Yosys' write_verilog pass is fixed, we should remove this.
ignore_warnings=True)
def convert_fragment(*args, strip_internal_attrs=False, **kwargs):