[PLUG] Python Test Script
Eric Miller
eamiller at purdue.edu
Tue Apr 15 00:08:26 EST 2003
Scott,
It seems to me that you want to make a macro script for VSIM, then call it
from python, which you can do by os.system("vsim -do <macroscript>"). That
way you can load the simulation, define your wave windows, etc. with the
macro script using commands that are native only to VSIM.
--Eric
----- Original Message -----
From: "scott.p.mullins.1" <mullinsp at purdue.edu>
To: <PLUG at csociety.purdue.edu>
Sent: Monday, April 14, 2003 11:46 AM
Subject: [PLUG] Python Test Script
> Hello,
>
> I am attempting to write a python script that will test a
> microprocessor. In order to test it, I have to use VSIM, which is a
> simulator used to test vhdl/verilog. The problem I am having is when I
> try to execute commands in VSIM, they are not being recognized. For
> example:
>
> os.system("run 100000 ns")
>
> This command will not be rocognized and give me an error "sh:run: command
> not found." I realize that this problem is occuring because the os.system
> command is used to execute unix based commands, and run is not a unix base
> command. Any ideas for how I would tell VSIM to use the run command? Is
> there a way I can tell that process to execute a command? Any help would
> be appreciated.
>
> Cheers,
>
> Scott
> ____________________________________________________
> The Purdue Linux Users' Group (PLUG) mailing list.
> For account maintenance and removal go to:
> plug mailing list - plug at csociety.purdue.edu
> http://lists.csociety.org/listinfo/plug
>
More information about the plug
mailing list