Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Directories in script

Reply
Thread Tools

Directories in script

 
 
ALuPin@web.de
Guest
Posts: n/a
 
      09-12-2005
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é

 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      09-12-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
 
Klaus Falser
Guest
Posts: n/a
 
      09-13-2005
In article <(E-Mail Removed). com>,
(E-Mail Removed) 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
 
Reply With Quote
 
Mike Treseler
Guest
Posts: n/a
 
      09-14-2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Directories and Physical directories Paul M Fin MCAD 4 06-27-2008 07:50 PM
virtual directories/physical directories in IIS Paul F ASP .Net 4 06-25-2008 04:04 PM
Multiple bin-directories with virtual directories? =?Utf-8?B?TGFzc2UgTmlsc3Nvbg==?= ASP .Net 0 11-09-2004 05:49 PM
How to map Project directories to Production sub-directories Joel Finkel ASP .Net 0 09-12-2003 06:47 PM
Using virtual directories for common directories (scripts, images, styles, etc.) Jeffry van de Vuurst ASP .Net 2 07-30-2003 07:00 PM



Advertisments