You need to set your modelsim.ini file , where you can give multiple working libraries .
synthax is
<Libname> = <lib path>
I think above should be added in library section of modelsim.ini .
If you desing is VHDL no need to specify -L option while invoking "vsim" , if your netlist is in veriog you shoulad add like this ..
Hi, yln, thank u so much for your reply. I have add the library (umcl25u250t3v) to modelsim.ini, and it seems that the library is succesfully imported to Modelsim (from the ModelSim GUI). But there is still a problem...
I created the following sum.do file:
vlib work
vcom -93 -explicit sum_netlist.vhd
vcom -93 sum_TB.vhd
vsim umcl25u250t3v work.sum_tb
run 500
quit -sim
and I issued the command from command line:
vsim -do sum.do
then I got following error message, says:
vsim umcl25u250t3v work.sum_tb
# ** Error: (vsim-3170) Could not find 'work.umcl25u250t3v'.
# Error loading design
I don't understand why it searches the simulation library umcl25u250t3v from the working library - work. Can u tell me how to solve this problem? Thanks a lot!
But umcl25u250t3v is the resource library for gate_level simulation, if this is not identified, there will be no default binding for my gate.
Of cause I can use library clause inside of the netlist to indicate this resource library, but for big designs, this method is very tedious. So I want to try to set it to the simulation environment.