Running regression with modelsim
I have been trying to run regression tests (for core1) with modelsim as I don't have access to other simulators. After all the environmental variables are set it comes down to the sims command, after a lot of trial and error the best command I could find is
sims -sim_type=mti -group=core1_mini -sim_build_cmd=/modeltech_path/vlog -sim_run_cmd=/modeltech_path/vsim -sim_build_args="-work /lib_path/work" -sim_run_args=-L -sim_run_args=/lib_path/work -sim_run_args=-pli -sim_run_args=~/vera/veriuser.so -sim_run_args=-c
where modeltech_path and lib_path are paths of modelsim and a work library respectively.
This still doesn't run the regression, I see sim_start on the screen but it stops there.
As I couldn't manage to find the right command I am asking if anybody tried to run opensparc with modelsim before? Any tips on running individual testbench configurations would also be very helpful. (with sims -sys=NAME command)
Thanks
# 1
Use the following command. It starts the modelsim correctly. Then just type run -all command in the transcript. For some reason the simulation stops due to a failure but it's a good start. I don't use vera so add or remove vera parameters for the sims command. Also if I add -c parameter in sims command modelsim does not start in command line.
sims -sim_type=mti -group=chip8_full -sim_build_cmd=<PATH>/vlog -sim_run_cmd=<PATH>/vsim -sim_build_args="-work <PATH>/OpenSPARCT1_model/work" -sim_run_args=<PATH>/OpenSPARCT1_model/work.cmp_top -novera_build -novera_run
where <PATH> is the PATH of modelsim vlog and vsim command and the directories where you create OpenSPARC_model
I hope this help.
Message was edited by:
Amdapo
# 2
Hi,
Currently I am aslo getting the same problem.
The command I used is
sims -sim_type=mti -sim_build_cmd=vlog -sim_run_cmd=vsim -group=thread1_mini -novera_build -novera_run
In order to run Opensparc I did following thing
1. source Opensparc.cshrc
2. Create Model dir. in opensparc dir. as mti.
3. Set Makefile to point to linux.i686 as
ln -s Makefile.Linux.i686 Makefile.system
Then I have edited the sims,1.262 perl script & added sim_run_args as
push (@{opt{sim_run_args}}, " -lib $model_path/work cmp_top" );
Also I have created work dir. thro' script as
`vlib $model_path/work' ; instead of $cur_dir/work.
So it compiles the design but at run time the machine hangs. When I run "top" in other window I didn't see any change.
I need this up & running. So please let me know where I am going wrong.
Thanks,
Upendra.
# 3
Getting correct/supported compiler for building PLIs is the key to get modelsim running.
I suggest you ask Mentor which version of gcc compiler is supported for your platform and then build PLI library with that version.
We are going through similar exercise and hopefully will get some resolution soon.
Also you will have to replace $error and $info PLI calls to $display since both of these are now systemverilog keywords.