使用vcs工具提供的自动化种子 +ntb_random_seed_automatic和+ntb_random_seed=value Makefile 可以在仿真的log中产看每次随机的种子数值 run.log 如果一个指定的test在随机化仿真出现了fail,可以通过查找仿真log中的seed value,使用make SEED=seed value重现 如果在其它地方也需要显式的使用这个seed value(像Verilog的...
在利用vcs工具进行仿真时,可以通过设置自动化种子(+ntb_random_seed_automatic)和手动输入值(+ntb_random_seed=value)来确保随机性。在日志中,你可以观察到每次运行的随机种子数值,这对于追踪和复现特定测试失败情况至关重要。如果某个测试在随机化仿真中失败,可以通过搜索日志中找到的seed值,使用ma...
详见:https://www.cnblogs.com/yingchi/p/18706131 +ntb_random_seed=xxx 指定仿真种子号。xx为种子号。 +ntb_random_seed_automatic 每次仿真使用不同的随机种子。 +UVM_TESTNAME=tc_name 指定仿真运行的uvm_test用例。 +UVM_VERBOSITY=UVM_LOW/UVM_MEDIUM/UVM_HIGH/UVM_DEBUG 指定UVM环境的log打印级别。
+vcs+lic+wait +ntb_random_seed=$(seed) +seed= +tc= +fsdb+gate=off +fsdb+force +uvm_set_severity =*,UVM_ERROR,UVM_fail,uvm_fatal +UVM_VERBOSITY=UVM_NONE +UVM_TESTNAME= +UVM_OBJECTION_TRACE +UVM_PHASE_TRACE +UVM_CONDIF_DB_TRACE +fsdbfile xxx/xxx +fsdb+log_dump=off +vcs+initre...
1)+ntb_random_seed = value,将simv的随机seed设定为某个值,srandom(seed)有更高的优先级; 2)+ntb_random_seed_automatic,每次仿真随机产生seed,不会存在两次simv相同seed的情况; 3)-ucli -do file,直接执行ucli的脚本文件 -force_list,可以放在elaborate和simulation过程中,指定force信息的输出。
=8. RUN_OPTIONS += +ntb_random_seed=$(SEED) +tc_name=$(tc) -l $(RUN_LOG)9. RUN_OPTIONS += -assert nopostproc10. RUN_OPTIONS += +vcs+lic+wait11. RUN_OPTIONS += +vcs+initreg+$(SEED)12. RUN_OPTIONS += +UVM_TESTNAME=$(tc)13. ifeq ($(wave), on)14. RUN_OPTIONS += ...
./simv +ntb_random_seed=$(SEED) \ -ucli -i dump_fsdb_vcs.tcl \ +fsdb+autoflush \ -l sim_vcs.log 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 其中,-ucli 使能UCLI命令;-i 指定一个VCS执行仿真时包含CLI命令的文件,一般与-ucli配合;dump_fsdb_vcs.tcl 是一个tcl文件。
RUN = $(TB).simv -l run.log -sml +ntb_random_seed=$(SEED) //Makefile的三段式编译: comp: $(VCOMP) $(DFILES) $(VFILES)//先compile,DFILES编译的设计文件,VFILES编译的验证文件 elab: $(ELAB) -top $(TB) -o $(TB).simv//把编译的设计和验证文件链接到一起,指定最顶层TB, ...
makerunSEED=$${i}; done makecov_merge; comp: vcs-full64 -kdb-lca -debug_access+all -ntb_optsuvm -sverilog-timescale=1ns/1ns ${PRJ}/dut.sv ${PRJ}/top_tb.sv +incdir+${PRJ} -lcomp.log run_ico: ./simv-lsim.log+ntb_random_seed=${SEED} ...
Option Description +ntb_random_seed= Sets the seed value used by the top level random number generator at the start of simulation. The random(seed) system function call overrides this setting. The value can be any integer number. http-equiv="content-type" ...