vcs -simprofile simv -simprofile time #或者 vcs -simprofile simv -simprofile mem 仿真结束之后会产生一个 profileReport.html文件,样子长下面这样: 使用浏览器打开即可,找到占用过长时间或内存的模块,然后进行优化。 比较常见的两个代码写法问题会导致仿真变慢: 1、太多的无意义打印。 2、对类进行无意义的实例...
编译选项 -simprofile 1.Compile your design using the -simprofile compile-time option. Important: If this is not the first compilation of your design, delete the csrc and simv.daidir directories and simv executable file before this step. Incremental compilation is not yet supported for the unified...
+prof will be replaced by -simprofile in new release of VCS. compile time option. whit it, VCS generates a vcs.prof file during simulation, which contains a profile of the simulation in termss of CPU time and memory it uses. For CPU time, it reports: 1. the percentage of CPU time u...
在仿真选项中,我们需要添加-simprofile选项,并指定我们想要收集的信息类型。例如,如果我们想要收集仿真过程中的内存消耗和各个模块的仿真时间,我们可以使用-simprofile time+mem选项。此外,我们还可以通过-simprofile_dir_path选项来指定存储仿真报告的目录。 解读报告 仿真完成后,VCS会在指定的目录下生成一个名为profileRep...
仿真性能分析则通过-simprofile和-simprofile time/mem选项,分析CPU时间和内存消耗。报告会显示在profileReport.html文件中,通过识别占用资源过多的模块进行优化,常见的问题包括无意义打印和频繁的类实例化导致内存浪费。此外,可以借助-reportstats选项获取更详细的资源使用报告。虽然这个功能相对不常用,但仍...
编译选项 -simprofile 仿真选项 -simprofile time+mem 如果PLI/DPI/DirectC 这一项占的比例较大,而且是DPI中的uvm_re_match占的时间较多,可以在编译选项中 加上 +define+UVM_REGEX_NO_DPI 可以大大降低这个部分的时间消耗。
% simv -simprofile mem % profrpt -view mem_all -format text simprofile_dir 在profileReport目录内部可以使用文本格式查看如下不同的view: 1、PeakMemConstrView.txt 其提供了有construct的函数进行construct消耗的内存。SystemC的主要construct为SC process,一般是SC_METHODS,SC_THREADS,或SC_CTHREADS。
根据需要配置其他仿真选项,如-debug_access、-simprofile等。 运行仿真: 使用vcs命令运行仿真,并传入相应的选项和文件。例如: bash vcs -j4 my_design.v -o simv ./simv 在这个例子中,-j4表示使用4个进程进行并行编译,my_design.v是待仿真的设计文件,-o simv指定了仿真生成的可执行文件名为simv。 5. VC...
VCS unified simulation profiler用以分析仿真过程中DUT/TB各部分的CPU、Memory使用情况,可用于优化验证环境,缩短仿真耗时或mem消耗。具体可参考vcs_ug Chapter 6 The Unified Simulation Profiler。 编译选项加 -simprofile 仿真选项加 -simprofile time或-simprofile mem,time 和 mem不能同时加。
通信模块仿真中遇到死锁问题,两个进程相互等待导致仿真卡死。打开VCS的debug模式,结合波形分析交互过程,发现握手信号在特定时序下无法正确释放。增加超时机制并优化状态判断条件,死锁现象消失。仿真速度突然变慢时要警惕内存泄漏,使用vcs–simprofile参数生成资源报告,发现某递归函数调用层级过深,优化算法结构后内存占用...