方法:
read_file 你的verilog代码所在目录 -autoread -recursive -format verilog -top 顶层文件的名字
举例:
read_file ../rtl/ -autoread -recursive -format verilog -top lint_top
这里,“…/rtl/”就是我verilog文件所在的目录,lint_top就是我的顶层文件的名字。
命令输入完后,可以在filenames.log里看文件是否被导入。