1.分离编译的优点
(1)拆分成多个线程去并行执行编译,节省了编译时间。-fastpartcom=jn,n代表并行线程的数量
(2)将DUT和TB分成若干partition,未修改的partition不需要重新编译
2.分离编译命令
-partcomp +optconfigfile+top.optcfg -fastpartcomp=j4
#top.optcfg
#将验证环境中的package作为不同的partition
partition package uvm_pkg;
partition package testbench_pkg1;
partition package testbench_pkg2;
partition package vip_pkg;
#将rtl中不同的module作为不同的partition
partition cell module_sub_top0; #cell后面加module 名, instance后面加例化名
partition cell module_sub_top1;
partition cell module_sub_top1;
3.分离编译优化
可以通过-pcmakeprof这个选项,来查看每个块编译所用的时间,从而进一步方便对时间久的块进行拆分。
参考链接:
https://blog.csdn.net/hh199203/article/details/123067052