A
ALuPin
Guest
Hi,
I have written a little .do-script with which
the VHDL files are compiled and the simulation is performed.
When I open Modelsim I have to go to
FILE --> CHANGE DIRECTORY and then I have to enter
the path of my simulation directory including my script.
How can I do this directory changing automatically at the beginning
of my script ? Is there any command ?
I would appreciate your help.
Here is the script
vlib work
# Compile base libraries
vcom util1164.vhd
vcom stdlogar.vhd
vcom io_utils.vhd
vcom mti_pkg.vhd
# Compile test vectors
vcom vec_gen.vhd
vcom ed_comnd.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/
fraction_sdram_numbers_fifo.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/
mux_fraction_fifo_outputs.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/sdram_pos_arbiter.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/
sdram_positions_arbitration.vhd
vcom -93 ../../../sdram_ctrl/valid_bytes_in_row.vhd
vcom -93 ../../../sdram_ctrl/tristate_buffer.vhd
vcom -93 ../../../sdram_ctrl/sdram_controller.vhd
vcom -93 ../../../sdram_ctrl/sdram_ctrl.vhd
vcom -93 ./mt48lc8m16a2.vhd
vcom -93 ../../../sie_trans_fs/read_burst_fifo.vhd
vcom -93 ../../../sie_trans_fs/crc16_8bit_in.vhd
vcom -93 ../../../sie_trans_fs/sie_trans_fs.vhd
vcom -93 ./tb_sdram_ctrl_sie_fs.vhd
vsim tb_sdram_ctrl_sie_fs
do Simulationsplot_sdram_ctrl_sie_fs.do
run 1200us -all
configure wave -signalnamewidth 1
set StdArithNoWarnings 1
set IgnoreWarning 1
set DefaultRadix unsigned
I have written a little .do-script with which
the VHDL files are compiled and the simulation is performed.
When I open Modelsim I have to go to
FILE --> CHANGE DIRECTORY and then I have to enter
the path of my simulation directory including my script.
How can I do this directory changing automatically at the beginning
of my script ? Is there any command ?
I would appreciate your help.
Here is the script
vlib work
# Compile base libraries
vcom util1164.vhd
vcom stdlogar.vhd
vcom io_utils.vhd
vcom mti_pkg.vhd
# Compile test vectors
vcom vec_gen.vhd
vcom ed_comnd.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/
fraction_sdram_numbers_fifo.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/
mux_fraction_fifo_outputs.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/sdram_pos_arbiter.vhd
vcom -93 ../../../sdram_ctrl/sdram_positions_arbitration/
sdram_positions_arbitration.vhd
vcom -93 ../../../sdram_ctrl/valid_bytes_in_row.vhd
vcom -93 ../../../sdram_ctrl/tristate_buffer.vhd
vcom -93 ../../../sdram_ctrl/sdram_controller.vhd
vcom -93 ../../../sdram_ctrl/sdram_ctrl.vhd
vcom -93 ./mt48lc8m16a2.vhd
vcom -93 ../../../sie_trans_fs/read_burst_fifo.vhd
vcom -93 ../../../sie_trans_fs/crc16_8bit_in.vhd
vcom -93 ../../../sie_trans_fs/sie_trans_fs.vhd
vcom -93 ./tb_sdram_ctrl_sie_fs.vhd
vsim tb_sdram_ctrl_sie_fs
do Simulationsplot_sdram_ctrl_sie_fs.do
run 1200us -all
configure wave -signalnamewidth 1
set StdArithNoWarnings 1
set IgnoreWarning 1
set DefaultRadix unsigned