verdi expand macro

本文介绍使用verdi工具把某个文件进行预处理,把宏给扩展出来。

  1. 先打开verdi,并加载design。

  2. tools -> preferences.. -> general -> enable TCL Command Entry


  3. 在TCL 命令行输入如下命令:

    1
    2
    Tcl> viaSetupL1Apps (# this command is a must to initialize the VC App. use the command once)
    Tcl> npiDlSym -func vatbox_expand_file_macro -file "test.v" -out_dir "expandMacro"

    npiDlSym -func vatbox_expand_file_macro [-file < filename >] [-out_dir < target directory >]

Note: This is supported only in verdi/2018.09-SP2-1 and later versions.

参考:

https://solvnet.synopsys.com/retrieve/3129156.html?charid=techupdate&tuid=658&source=email