仿真的regression阶段,跑多个case(pattern),用脚本执行,可以采用串行和并行方式。
串行执行
makefile中
run:
irun -opts() -test0.sv
irun -opts() -test1.sv
irun -opts() -test2.sv
并行执行
makefile中
run:
irun -opts() -test0.sv &
irun -opts() -test1.sv &
irun -opts() -test2.sv &
当然,你也可以开多个terminal,执行不同的case.(很不方便的方法)
并行好处就是可以充分使用工作站(服务器)的资源(cpu+memory),以达到尽快出结果的目的,当然资源不是无限的,case受限与一个shell的job的个数以及服务器的硬件可用资源。
本质上,并行就是在shell下后台操作以实现并行。