Continue to Site

Running Modelsim/Questasim in batch mode and storing data

Status
Not open for further replies.

zuzubingo101

Newbie
Newbie level 1
Joined
Sep 18, 2023
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
19
I have to automate the simulation, testing and verification of results in Modelsim (in Linux) without GUI. For that, I have to open the project, then run the script file(.do) and store the results in a list file. The mydofile.do contains following commands. add list /PATH/signal_a run 1000ps -all write list -window List result.lst

I am running the following command

Open the simulation project using vsim and time in picoseconds. "vsim" invokes the simulator. mydofile.do is a script file that configures and runs the simulation vsim -batch -t ps abc.abc_demo & -do mydofile.do

The simulation project opens, loads the design and executes the .do file successfully. However, at the end of the simulation, I get the following error Error: write list not supported

I have also tried using console mode as well with the following command vsim -c -t ps abc.abc_demo & -do mydofile.do But that results in "Error: No list window. (nothing logged?)"

If I run the simulation in GUI mode (vsim -t ps abc.abc_demo & -do mydofile.do), things work fine and result.lst file is stored with updated values.

How to achieve the required execution without opening GUI?
 

I have never used a list file. Is it really useful?
Is it a way to do testing without a test bench?
I recommend that you write a test bench, and let it write the interesting data to a file with normal file i/o operations.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top