How to get the AST result as a textfile from YOSYS

Deadly 提交于 2019-12-12 07:01:21

问题


We know that YOSYS (YOSYS for win32) can get an AST result using read_verilog _dump_ast command, but the result view in the command window. How can we get the result as a textfile from the command window? Thank you very much!


回答1:


You can redirect the yosys log output using the -l command line option (e.g. yosys -l logfile.txt), or using the tee command in yosys:

tee -o outputfile.txt read_verilog -dump_ast1 input .v


来源:https://stackoverflow.com/questions/37289536/how-to-get-the-ast-result-as-a-textfile-from-yosys

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!