--曾国藩
1.本文内容标题截图
2.环境变量的设置
#!/bin/csh
setenv UVM_HOME /home/icer/help/uvm_src/uvm-1.1d
setenv WORK_HOME `pwd`
setenv PROJECT_DIR ~/projects
setenv IIC_AGENT_DIR ${PROJECT_DIR}/iic/agents/iic_agent
setenv WB_AGENT_DIR ${PROJECT_DIR}/iic/agents/wb_agent
setenv IIC_SEQUENCES_DIR ${PROJECT_DIR}/iic/iic_tb/sequences
setenv IIC_TB_DIR ${PROJECT_DIR}/iic/iic_tb/tb
setenv IIC_TEST_DIR ${PROJECT_DIR}/iic/iic_tb/test
setenv IIC_ENV_DIR ${PROJECT_DIR}/iic/iic_tb/env
setenv IIC_RTL_DIR ${PROJECT_DIR}/iic/rtl
3.编译仿真过程中遇到的问题及解决方法
3.1问题1
3.2问题1的解决方法:
-uvmhome `xmroot`/tools/methodology/UVM/CDNS-1.1d。
关于如何指定uvm库的方法,详见公众号另外一篇文章
3.3问题2
3.4问题2的解决方法:
-loadpli `xmroot`/tools/methodology/UVM/CDNS-1.1d/sv/lib/64bit/libuvmpli.so:uvm_pli_boot
4.使用的Makefile脚本
TB = top
UVM_VERBOSITY = UVM_DEBUG
##TB filelist
TB_FILES = ./tb.f
#compile and elab option
XRUN = xrun -64bit -sv -access rwc -clean -elaborate \
-uvmhome `xmroot`/tools/methodology/UVM/CDNS-1.1d \
-timescale 1ns/1ps \
-coverage all -coverage functional \
+define+UVM_OBJECT_MUST_HAVE_CONSTRUCTOR \
+incdir+${IIC_AGENT_DIR}+${IIC_AGENT_DIR}/bits+${IIC_AGENT_DIR}/bytes\
+incdir+${WB_AGENT_DIR}\
+incdir+${PROJECT_DIR}/iic/iic_tb/sequences\
+incdir+${IIC_TEST_DIR}\
+incdir+${IIC_ENV_DIR}\
+incdir+${IIC_RTL_DIR}\
+incdir+${IIC_TB_DIR}\
-f $(TB_FILES) \
-loadpli `xmroot`/tools/methodology/UVM/CDNS-1.1d/sv/lib/64bit/libuvmpli.so:uvm_pli_boot
##for testbench compile and elaboration command
comp:
##for simulation command
case1:
xrun -R +UVM_TESTNAME=iicMasterTxTest -covtest iicMasterTxTest -covoverwrite
case2:
xrun -R +UVM_TESTNAME=iicMasterTxTest -covtest iicMasterTxTest -covoverwrite
case3:
xrun -R +UVM_TESTNAME=iicMasterRxTest -covtest iicMasterRxTest -covoverwrite
case4:
xrun -R +UVM_TESTNAME=iicMasterRxTxArbTest -covtest iicMasterRxTxArbTest -covoverwrite
case5:
xrun -R +UVM_TESTNAME=iicMasterTxRxArbTest -covtest iicMasterTxRxArbTest -covoverwrite
case6:
xrun -R +UVM_TESTNAME=iicMasterRxRxArbTest -covtest iicMasterRxRxArbTest
case7:
xrun -R +UVM_TESTNAME=iicMasterTxTxArbTest -covtest iicMasterTxTxArbTest
case8:
xrun -R +UVM_TESTNAME=iicMasterRxRxSameAddressArbTest -covtest iicMasterRxRxSameAddressArbTest
case9:
xrun -R +UVM_TESTNAME=iicMasterTxTxLongArbTest -covtest iicMasterTxTxLongArbTest
case10:
xrun -R +UVM_TESTNAME=iicPcTest -covtest iicPcTest
regr: case1 case2 case3 case4 case5 case6 case7 case8 case9 case10
##clean generated files
clean:
rm -rf AN.DB DVEfiles csrc *.simv *.simv.daidir simv* ucli.key 64
rm -rf *.log* *.vpd *.fsdb *.vdb novas* *verdi*
rm -rf vc_hdrs.h via.rc *.history
5.欢迎关注微信公众号《芯片验证日记》
6.欢迎加入知识星球《数字芯片前端验证》
另外,由于微信群已经超过200人,添加小编的微信,拉你进入WX学习群。