混仿 irun 如何配置支持多核多线程跑仿真?
时间:10-02
整理:3721RD
点击:
hi, 最近发现 irun 调用ncsim时,跑3 个仿真时,三个线程各占33%个cpu,多个线程一共才占一个cpu。
如何配置让irun 跑混合仿真时线程个数达到多个,(spectre的aps是可以设置为多个线程的)
top 显示3个ncsim占了0.33个cpu,仿真速度很慢。
PID USERPRNIVIRTRESSHR S %CPU %MEMTIME+COMMAND
55149 si00003200 1769m 1.3g41m S 33.44.02:41.43 ncsim
24588 si00003200 1838m 1.3g42m S 33.14.21283:12 ncsim
65017 si00003200805m 339m40m S 33.11.132:43.09 ncsim
下面是我跑仿真的irun配置
irun
-64bit
-now SYSFMW
-now FUNTSK
-processor 8
-mcmaxcores 6
../../tb/top.sv
-spectre_args " ++aps=moderate+mt=7 -proc 8 +lqtimeout 900 -maxw 8 -maxn 8"
../../spice_env/ams_conf_spice.scs
-timescale 1us/1us
-input ../../env/probe_no.tcl
-access +rwc
-AUTOSPICEOOMR
-AUTOXSPICE
-amsconnrules MyRules
-top top
-l ../../simulation/result/log/basic_test_spi_0.log
+TEST_CASE=xxx
-nclibdirname ../../simulation/database/basic_test_spi_0
-uvm
+UVM_TESTNAME=test
+UVM_VERBOSITY=UVM_NONE
+define+UVM_OBJECT_MUST_HAVE_CONSTRUCTOR
+define+FAST_SIM
+define+DISALBE_OTP_CHECK
+define+MIX_IRUN
+define+SYNTHESIS+SMIC18_SMIC
+define+SPICE_DIG
+nospecify
+no_notifier
+notimingcheck
+TEST_CASE=basic_test_spi_0
+UVM_VERBOSITY=UVM_NONE
如何配置让irun 跑混合仿真时线程个数达到多个,(spectre的aps是可以设置为多个线程的)
top 显示3个ncsim占了0.33个cpu,仿真速度很慢。
PID USERPRNIVIRTRESSHR S %CPU %MEMTIME+COMMAND
55149 si00003200 1769m 1.3g41m S 33.44.02:41.43 ncsim
24588 si00003200 1838m 1.3g42m S 33.14.21283:12 ncsim
65017 si00003200805m 339m40m S 33.11.132:43.09 ncsim
下面是我跑仿真的irun配置
irun
-64bit
-now SYSFMW
-now FUNTSK
-processor 8
-mcmaxcores 6
../../tb/top.sv
-spectre_args " ++aps=moderate+mt=7 -proc 8 +lqtimeout 900 -maxw 8 -maxn 8"
../../spice_env/ams_conf_spice.scs
-timescale 1us/1us
-input ../../env/probe_no.tcl
-access +rwc
-AUTOSPICEOOMR
-AUTOXSPICE
-amsconnrules MyRules
-top top
-l ../../simulation/result/log/basic_test_spi_0.log
+TEST_CASE=xxx
-nclibdirname ../../simulation/database/basic_test_spi_0
-uvm
+UVM_TESTNAME=test
+UVM_VERBOSITY=UVM_NONE
+define+UVM_OBJECT_MUST_HAVE_CONSTRUCTOR
+define+FAST_SIM
+define+DISALBE_OTP_CHECK
+define+MIX_IRUN
+define+SYNTHESIS+SMIC18_SMIC
+define+SPICE_DIG
+nospecify
+no_notifier
+notimingcheck
+TEST_CASE=basic_test_spi_0
+UVM_VERBOSITY=UVM_NONE
,我是用irun 调用uvm和specture 我添加了aps的相关多线程选项,但是还是不能跑多线程,总是单线程。
如果用图形化傻瓜方式可以支持多线程。但是图形化specture界面效率太低,不能调用uvm