Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Modelsim VSIM (in TCL) failed but process is still alive

Status
Not open for further replies.

yuvalkesi

Member level 5
Joined
May 13, 2009
Messages
92
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,036
Hi,
I'm running VSIM.exe in a tcl from a software, and output the result to a log file. All works well, except in case there's a compilation error (even simple syntax error in the vhd file), I get this message in the log file:
Code:
# Error in macro c:\My_Designs\msim.tcl line 7
# C:/Modeltech_pe_edu_10.2b/win32pe_edu/vcom failed.
#     while executing
# "vcom file.vhd"
ModelSim>

and the vsim.exe is still running in the background forever. If I kill it thru the task manager the log file will show:
Code:
# Error in macro E:\My_Designs\FPGA\Design\VHDL\ver_EB8C\vhdl\script_msim.tcl line 7
# C:/Modeltech_pe_edu_10.2b/win32pe_edu/vcom failed.
#     while executing
# "vcom file.vhd"
ModelSim> 
** Fatal: vish lost connection to vsim process.

How can I know the VSIM failed and why isn't the process terminated by its own?
My tcl I'm running is:

Code:
cd c:\My_Designs\vhdl
set WRK work
if {[file exists $WRK]} {
} else {
vlib work
vmap work work}
vcom file.vhd
quit -f

It seems as if the
Code:
quit -f
is not working! otherwise I would not see the
Code:
ModelSim>
.
Please help!
Thank you.
 

I don't get this script...
vcom doesn't run vsim.exe it runs vcom.exe which compiles VHDL source into a working library. vsim.exe runs a simulation, which isn't called at all by your script.
 

Is there any way to know the VCOM has ended? (by tcl)
Maybe woth IF command, is there a flag VCOM returns after it completed?
My problem is it get stuck in the process even though it ended.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top