VHDL - Launch ModelSim shell file

Status
Not open for further replies.

wolfy_

Newbie level 2
Joined
Nov 22, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
Hi,

I am trying to launch ModelSim from a file because I need to launch three separate ModelSim at the same time.
I created the file pre_compile.sh:

Code:
vlib work
vcom Digital1101.vhd Digital1111.vhd NOT_rsvd.vhd
vsim -foreign "simlinkserver solaris32/liblfmhdls_gcc412.so;-socket 5678"-novopt Digital1111 &
vsim -foreign "simlinkserver solaris32/liblfmhdls_gcc412.so;-socket 5679"-novopt Digital1101 &
vsim -foreign "simlinkserver solaris32/liblfmhdls_gcc412.so;-socket 5680"-novopt NOT_rsvd &


but when I call the file. / pre_compile.sh it compiles the files .vhd but ModelSim will not start.

I think the problem is with the symbol &

Is there any solution that can help me?

Thanks
 

Modelsim has a particular syntax that lets you run scripts. I'm not sure about this, you can check this in the manual.

Try: vsim <top_level> -do sim.do

This loads the top level, and modelsim reads the sim.do file. This file should obviously only have modelsim instructions and no shell instructions.
 

yes, you can write the modelsim command to load vhdl code!
 

I think I have found the solution

Code:
vlib work
vcom Digital1101.vhd Digital1111.vhd NOT_rsvd.vhd
vsim -foreign "simlinkserver solaris32/liblfmhdls_gcc412.so;-socket 5678"-novopt Digital1111 Digital1101 NOT_rsvd

So when the ModelSim launch it run's with all blocks in the same socket
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…