Hello All,
I am trying to figure out how to automate my verification environment using ModelSim. I want to do the following:
I want to be able to call a shell script, let's call it 'do_sim', that accepts the names of the tests that I want to run as arguments. So for example:
% do_sim test1 test2
Inside do_sim, would be the 'vsim' command to call ModelSim.
I have already written a tcl procedure, called 'run_tests', which accepts a list of tests, and runs them one after the other. I can manually invoke ModelSim on the command line, and then manually run the loaded tcl procedure 'run_tests', like this:
% vsim -c -do run_tests.tcl
ModelSim> run_tests test1 test2
But I want to do this all in one command. Does anyone know how to pass the arguments to the tcl procedure directly from the 'vsim' command? I've seen it done once before, but can't get it working.
I am trying to figure out how to automate my verification environment using ModelSim. I want to do the following:
I want to be able to call a shell script, let's call it 'do_sim', that accepts the names of the tests that I want to run as arguments. So for example:
% do_sim test1 test2
Inside do_sim, would be the 'vsim' command to call ModelSim.
I have already written a tcl procedure, called 'run_tests', which accepts a list of tests, and runs them one after the other. I can manually invoke ModelSim on the command line, and then manually run the loaded tcl procedure 'run_tests', like this:
% vsim -c -do run_tests.tcl
ModelSim> run_tests test1 test2
But I want to do this all in one command. Does anyone know how to pass the arguments to the tcl procedure directly from the 'vsim' command? I've seen it done once before, but can't get it working.