河南建设资格执业网站,网站建设步骤与时间表,在线设计签名免费网站,中山网直播文章目录 前言 前言
记录做项目的时候编译问题#xff0c;好记性不如烂笔头#xff0c;下次碰到相同的问题也可以方便查阅 2023.3.22
问题1#xff1a;每次跑回归测试的时候#xff0c;总是会出现错误#xff0c;总共只有5个test#xff0c;单独跑这个case的时候是没有… 文章目录 前言 前言
记录做项目的时候编译问题好记性不如烂笔头下次碰到相同的问题也可以方便查阅 2023.3.22
问题1每次跑回归测试的时候总是会出现错误总共只有5个test单独跑这个case的时候是没有问题的
An unexpected termination has occurred in ./SIMV/ahbl_mst_burst_apb_slv_slverr_051555011_simv due to a signal: Segmentation fault问题分析 发生了段错误没有物理内存对应该地址好像是访问了一些不存在的物理内存空间在出现这个错误之前还出现下面的warning信息。但是我在仿真脚本的编译选项里面是添加了这个ntb_solver_array_size_warn10000可能是没起作用导致数组长度太大。
Warning-[CNST-LASW] Constraint large array size warning
/home/xxx/ahb2apb/dv/seqlib/ahbl_mst_seqlib.sv, 30Variable haddr_q.size() has value 100000, which may cause severe performance degradation.Please try to reduce the array size.You can use ntb_solver_array_size_warnnum to adjust the array size warning limit.Warning-[UNK_COMP_ARG] Unknown compile time plus argument usedUnknown compile time plus argument ntb_solver_array_size_warn100000 is ignored.解决方法 把它设置成了200000还是有warning信息
Warning - [CNST-LASW] Constraint large array size warning/home/heliu/ahb2apb/dv / seqlib/ahbl_mst_seqlib.sv,30
Variable haddr q.size( ) has value 1410065408,which may cause severe performance degradation.Please try to reduce the array size.
You can use ntb_solver_array_size_warnnum to adjust the array sizewarning limit.问题2 为了避免对case语句中default语句收集覆盖率所以添加了编译选项-cm_nocasedef出现如下warning
Warning-[VCM-OPTINWP] Option used in wrong phase.-cm_nocasedef is not a compile-time coverage option. It will have no effect at compile-time.This option should be used at report-time.Please contact VCS support forfurther information.解决方法区分compile-time、run-time、report-time这三个不同的时间看上去像是选项加错了位置而且总感觉出现这些问题都是我要一步执行-R引起的但是又说一步执行的vcs选项的顺序又没有太大的要求这点暂时还没理解清楚
改成了-cm_cond nocasedef又出现了下面这个错误-cm_cond没有nocasedef这个选项有的选项在另外一篇博客有介绍
Error-[CM-ARGPL] Incorrect argument nocasedef is not a valid argument to -cm_cond. The -cm_cond option requires a separated list of flags. The legal flags are: basic std allops full event anywidth tf caseeq for path sop ports allvectors scalarbitwise flat obs noxfalse objects最后在urg的时候加上去除收集default语句的行覆盖率-line nocasedef
urg -full64 -line nocasedef -dir *.vdb -dbname merge -report urgReport输出的urg log信息中有如下
Note-[URG-NCDN] No case defaultSince the -line nocasedef option was given, URG will exclude all the default case items from the line coverage reports.