riple

Stay Hungry, Stay Foolish.

采用JobSpy控制Modelsim批处理仿真

0
阅读(2188)

JobSpy可以用来管理Modelsim的批处理仿真过程,具体应用如下:

  • 1. Checking the progress of a simulation.

  • 2. Examining internal signal values to check if the design is functioning correctly, without stopping the simulation.

  • 3. Suspending one job to release a license for a more important job, also allowing you to restart the suspended job later.

  • 4. Instructing the running batch job to do a checkpoint of the job and then continue the run. If the workstation that was running a batch job were to fail at sometime in the future, you would could restart the job again from the saved checkpoint file.

riple做了一些实验,发现在Modelsim的手册中一些没有说清楚的要点:

1. JobSpy是针对“批处理仿真”的,只有通过vsim -c启动的仿真才能被JobSpy管理。

2. JobSpy需要JOBSPY_DAEMON环境变量才能运行。在Windows下,可以在“我的电脑”属性中配置,也可以在命令行配置。在命令行配置的 好处是,另外的命令行窗口只有设置同样的环境变量值,才能访问同一个JobSpy;在另外的命令行中启动的仿真,只有先行设置JOBSPY_DAEMON 环境变量才能被具有相同设置的JobSpy访问,这样一来,这个环境变量值成了不同窗口间通讯的密码。

3. 只有在JobSpy启动之后开始的批处理仿真,并且拥有相同的环境变量值,才可以被JobSpy管理,JOBSPY_DAEMON环境变量取值不同的,或 者是在JobSpy之前启动的仿真是无法被JobSpy看到的。

Jobspy在WinXP下的操作流程:

1. 运行jobspy_start.bat点击下载

2. 运行batch_sim.bat点击下载

3. 运行jobspy_gui.bat点击下载

4. 在GUI界面控制simulation_jobs的运行

5. 仿真结束后关闭GUI界面,运行jobspy_kill.bat点击下载

JobSpy GUI界面:

Baidu
map