Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Directories in script

 
Thread Tools Search this Thread
Old 09-12-2005, 02:03 PM   #1
Default Directories in script


Hi,

I am working with ispLEVER 5.0 and Modelsim 6.0c

When performing functional simulation in Modelsim I use the following
..do-script.
The problem: If I want someone else to use the script there is always
the problem that it is fixed to certain directories.
Is there some possibility to make it global ?


vlib work
set SRC_DIR1
"h:/eda/lattice/dvi/dvi_pc_top/ddr_sdram_ctrl/ddr_wbridge_complex"
set SRC_DIR2 "h:/eda/lattice/dvi/dvi_pc_top/ddr_sdram_ctrl"
set SRC_DIR3 "h:/eda/lattice/dvi/dvi_pc_top/image_ddrmem_wbridge"
vcom ${SRC_DIR2}/ddr_sdram_package.vhd
vcom ${SRC_DIR2}/mt46v16m16.vhd
vcom ${SRC_DIR2}/pll_ddr.vhd
vcom ${SRC_DIR2}/ddr_datapath.vhd
vcom ${SRC_DIR2}/ddr_controller.vhd
vcom ${SRC_DIR2}/ddr_sdram_ctrl.vhd
vcom ${SRC_DIR3}/fifo1_wddr.vhd
vcom ${SRC_DIR3}/fifo2_wddr.vhd
vcom ${SRC_DIR3}/image_ddrmem_wbridge.vhd
vcom ${SRC_DIR1}/ddr_wbridge_complex.vhd
vcom ${SRC_DIR1}/tb_ddr_wbridge_complex.vhd
vsim tb_ddr_wbridge_complex
do Simulationsplot_functional.do
run 100us -all
configure wave -signalnamewidth 1
set StdArithNoWarnings 1
set IgnoreWarning 1

Rgds
André



ALuPin@web.de
  Reply With Quote
Old 09-12-2005, 02:27 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: Directories in script
wrote:

> When performing functional simulation in Modelsim I use the following
> .do-script.
> The problem: If I want someone else to use the script there is always
> the problem that it is fixed to certain directories.


Have the script reference an environment variable
instead of a local constant for SRC_DIR1, SRC_DIR2 and SRC_DIR3.
Of course both you and someone else will have to
set these variables in your .bashrc or control panel.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 09-13-2005, 01:51 PM   #3
Klaus Falser
 
Posts: n/a
Default Re: Directories in script
In article <. com>,
says...
> Hi,
>
> I am working with ispLEVER 5.0 and Modelsim 6.0c
>
> When performing functional simulation in Modelsim I use the following
> .do-script.
> The problem: If I want someone else to use the script there is always
> the problem that it is fixed to certain directories.
> Is there some possibility to make it global ?
>
>
> vlib work
> set SRC_DIR1
> "h:/eda/lattice/dvi/dvi_pc_top/ddr_sdram_ctrl/ddr_wbridge_complex"
> set SRC_DIR2 "h:/eda/lattice/dvi/dvi_pc_top/ddr_sdram_ctrl"
> set SRC_DIR3 "h:/eda/lattice/dvi/dvi_pc_top/image_ddrmem_wbridge"
> vcom ${SRC_DIR2}/ddr_sdram_package.vhd
> vcom ${SRC_DIR2}/mt46v16m16.vhd
> vcom ${SRC_DIR2}/pll_ddr.vhd
> vcom ${SRC_DIR2}/ddr_datapath.vhd
> vcom ${SRC_DIR2}/ddr_controller.vhd
> vcom ${SRC_DIR2}/ddr_sdram_ctrl.vhd
> vcom ${SRC_DIR3}/fifo1_wddr.vhd
> vcom ${SRC_DIR3}/fifo2_wddr.vhd
> vcom ${SRC_DIR3}/image_ddrmem_wbridge.vhd
> vcom ${SRC_DIR1}/ddr_wbridge_complex.vhd
> vcom ${SRC_DIR1}/tb_ddr_wbridge_complex.vhd
> vsim tb_ddr_wbridge_complex
> do Simulationsplot_functional.do
> run 100us -all
> configure wave -signalnamewidth 1
> set StdArithNoWarnings 1
> set IgnoreWarning 1
>
> Rgds
> André
>
>

I would split the task and create a makefile for compiling
and updating the work library. This depends on the source
directory, but you could use a relative pathes like
.../../src/ddr_sdram_ctrl.vhd
Once the library is up to date, you can start your simulation
with another script, which does not depend on the source location
anymore.

Best regards
Klaus


Klaus Falser
  Reply With Quote
Old 09-14-2005, 06:32 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: Directories in script
Klaus Falser wrote:

> I would split the task and create a makefile for compiling
> and updating the work library.


Very good point.

Using emacs vhdl-mode you can define a
set of source directories and vhdl-mode
will scan them for you, find all the .vhd files
and generate the Makefile you need to compile
all the design units in the right order
by just saying "make"
or "make.exe" on the command line.
This can save you time because make keeps
track of file dates and only compiles
sources that need it.

Of course you can also create the Makefile
in an editor, but it might be easier
to load emacs than it is to learn make.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
script error chgontve Software 0 07-07-2009 11:56 PM
Microsoft.NET/Framework/<versionNumber>/CONFIG directories Sean Dockery MCTS 0 06-21-2009 03:01 PM
help with master page and java script alain23 Software 0 09-20-2007 06:02 AM
asp.net - Client side script not recognized for the usercontrol sara_23apr Software 1 09-27-2006 06:10 PM
scarface poster made out of entire script JimRibs@gmail.com DVD Video 0 11-13-2005 09:20 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46