nsgil85
Member level 4
Hi
I'v batch file that run modelsim:
The directory path in modelsim is where the batch file is located ("C:\HDL\Blocks\simulate\open_modelsim.bat")
compile.tcl file is:
i'm trying to figure out how do i write tcl script to compile a vhd file that located on parent of the current directory. ("C:\HDL\file.vhd")
Thanks
Gil
I'v batch file that run modelsim:
Code:
set a="%~dp0"
set a=%a:\=/%
vsim -gui -do "cd %a%" -do compile.tcl
Pause&Exit
compile.tcl file is:
Code:
vlib lib
vmap work lib
vcom -novopt -O0 tb_file.vhd
#vcom -novopt -O0 C:\HDL\file.vhd
#i want to use more generic like this:
vcom -novopt -O0 file.vhd
Thanks
Gil