Step1:编写Tcl脚本文件
cd path (for example => cd C:/Users/PandaPi/Desktop/ngc_packet)
read_edif xxx(top).ngc (顶层ngc)
read_edif xxx(ip).ngc (ip core ngc)
…
read_edif xxx(ip).ngc
link_design -top xxx(top)
write_edif -force -security_mode all xxx(top).edf
说明:cd的路径是指包含所有要转换的ngc文件的文件夹的绝对路径。Tcl脚本文件的生成可以先用文本文件(.txt)进行编辑,然后修改文件格式后缀,即将后缀".txt"修改为".tcl"。
Step2:Vivado Tcl Shell 运行脚本文件
source path/xxx.tcl ((for example => source C:/Users/PandaPi/Desktop/edif_gen.tcl))
说明:这个source的路径也就是.tcl文件的绝对路径。只要安装了vivado,直接搜索tcl,便可以找到Vivado Tcl Shell,然后输入source C:/Users/PandaPi/Desktop/edif_gen.tcl回车即可。Vivado Tcl Shell如下所示:
Step3:在Vivado 工程中调用.edf文件
说明:生成的.edf文件在之前包含所有.ngc的文件夹中。
~OVER~