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