EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

simulation script

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - VHDL Language - simulation script

JohnSmith
Guest

Wed Jun 08, 2011 6:32 pm   



Hi,

How can I use an environment variable in a ".do" script running it in
the modelsim window?

I tried the windows environment variable in % characters, but doesnt
work. Absolute paths work but I want use this scripts on different
computers.

vsim -sdftyp {/UUT=%MYDIR%/dir/.../timesim.sdf} ...

Thanks

MJB
Guest

Wed Jun 08, 2011 6:45 pm   



On Jun 8, 9:32 am, JohnSmith <csnew...@gmail.com> wrote:
Quote:
Hi,

How can I use an environment variable in a ".do" script running it in
the modelsim window?

I tried the windows environment variable in % characters, but doesnt
work. Absolute paths work but I want use this scripts on different
computers.

vsim -sdftyp {/UUT=%MYDIR%/dir/.../timesim.sdf} ...

Thanks

Try using the Tcl env() function. Modelsim's shell is essentially a
Tcl command line evironment and the .do files are .tcl scripts.

to get your directory, try /UUT=env(MYDIR)/ .....

I don't have a Modelsim installation handy so this is just off the top
of my head. Hope you find the solution!

JohnSmith
Guest

Wed Jun 08, 2011 7:00 pm   



On Jun 8, 6:45 pm, MJB <twotonto...@gmail.com> wrote:
Quote:
On Jun 8, 9:32 am, JohnSmith <csnew...@gmail.com> wrote:

Hi,

How can I use an environment variable in a ".do" script running it in
the modelsim window?

I tried the windows environment variable in % characters, but doesnt
work. Absolute paths work but I want use this scripts on different
computers.

vsim -sdftyp {/UUT=%MYDIR%/dir/.../timesim.sdf} ...

Thanks

Try using the Tcl env() function.  Modelsim's shell is essentially a
Tcl command line evironment and the .do files are .tcl scripts.

to get your directory, try /UUT=env(MYDIR)/ .....

I don't have a Modelsim installation handy so this is just off the top
of my head.  Hope you find the solution!

Doesnt work..

HT-Lab
Guest

Thu Jun 09, 2011 7:45 am   



On 08/06/2011 18:00, JohnSmith wrote:
Quote:
On Jun 8, 6:45 pm, MJB<twotonto...@gmail.com> wrote:
On Jun 8, 9:32 am, JohnSmith<csnew...@gmail.com> wrote:

Hi,

How can I use an environment variable in a ".do" script running it in
the modelsim window?

I tried the windows environment variable in % characters, but doesnt
work. Absolute paths work but I want use this scripts on different
computers.

vsim -sdftyp {/UUT=%MYDIR%/dir/.../timesim.sdf} ...

Thanks

Try using the Tcl env() function. Modelsim's shell is essentially a
Tcl command line evironment and the .do files are .tcl scripts.

to get your directory, try /UUT=env(MYDIR)/ .....

I don't have a Modelsim installation handy so this is just off the top
of my head. Hope you find the solution!

Doesnt work..

MJB forgot the variable sign,


vsim -sdftyp /UUT=$env(MYDIR)...

Hans
www.ht-lab.com

MJB
Guest

Fri Jun 24, 2011 9:57 pm   



On Jun 9, 12:45 am, HT-Lab <han...@htminuslab.com> wrote:
Quote:
On 08/06/2011 18:00, JohnSmith wrote:







On Jun 8, 6:45 pm, MJB<twotonto...@gmail.com>  wrote:
On Jun 8, 9:32 am, JohnSmith<csnew...@gmail.com>  wrote:

Hi,

How can I use an environment variable in a ".do" script running it in
the modelsim window?

I tried the windows environment variable in % characters, but doesnt
work. Absolute paths work but I want use this scripts on different
computers.

vsim -sdftyp {/UUT=%MYDIR%/dir/.../timesim.sdf} ...

Thanks

Try using the Tcl env() function.  Modelsim's shell is essentially a
Tcl command line evironment and the .do files are .tcl scripts.

to get your directory, try /UUT=env(MYDIR)/ .....

I don't have a Modelsim installation handy so this is just off the top
of my head.  Hope you find the solution!

Doesnt work..

MJB forgot the variable sign,

vsim -sdftyp /UUT=$env(MYDIR)...

Hanswww.ht-lab.com

Thanks for the correction! Smile

elektroda.net NewsGroups Forum Index - VHDL Language - simulation script

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony