Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17042 Discussions

How to compile Altera's libraries into a ModelSim SE in server?

Altera_Forum
Honored Contributor II
2,471 Views

I try to use ModelSim SE in our department sever, but I need first compile Altera's libraries into ModelSim SE, if there is no Quartus II in sever, can I still compile Altera's libraries into Modelsim? If it can be done, how to do it? 

 

Thanks very much.
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
864 Views

It depends a lot on the type of file which you want to compile. If it is a megacore or IPcore file which requires license, then I doubt if it will work. But for normal files i think it should be possible. But you can copy the required quartus library from c:/altera/<version>/quartus/eda/simlib (hope, i got it right) and give a try at your dept server. 

 

Cheers, 

manihatn
0 Kudos
Altera_Forum
Honored Contributor II
864 Views

Hi amnihatn, thanks for reply. I just want to try to load the normal files. After I copy the library, then what operation I should do to load them into Modelsim and compile? Is that similar as I compile my design and testbench? 

 

I know we can write TCL to do that but I am not familiar with TCL so I prefer use GUI to do it now. 

 

Thanks.
0 Kudos
Altera_Forum
Honored Contributor II
864 Views

Yes, it should be similar to the way you compile your normal design files. Normal ModelSim GUI would be sufficient. You can also write a simple .do file if you want. If you dont know how to do this, just observe the transcript window in modelsim when you run the vcom,vsim, while adding signals to the wave window. You will notice that all these get converted into commands in the transcript. Put the commands in a file with .do file and you get a small script which can be quite handy. But neither TCL nor .do files are really necessary, (Unless your design has lots of files) if you just want to test if it works in your dept server. But its good to learn TCL in long run. 

 

HTH, 

manihatn
0 Kudos
Altera_Forum
Honored Contributor II
864 Views

 

--- Quote Start ---  

Yes, it should be similar to the way you compile your normal design files. Normal ModelSim GUI would be sufficient. You can also write a simple .do file if you want. If you dont know how to do this, just observe the transcript window in modelsim when you run the vcom,vsim, while adding signals to the wave window. You will notice that all these get converted into commands in the transcript. Put the commands in a file with .do file and you get a small script which can be quite handy. But neither TCL nor .do files are really necessary, (Unless your design has lots of files) if you just want to test if it works in your dept server. But its good to learn TCL in long run. 

 

HTH, 

manihatn 

--- Quote End ---  

 

 

Thanks, I will try it. If it doesn't work, I will post here and ask for further help. Thanks very much.
0 Kudos
Altera_Forum
Honored Contributor II
864 Views

Altera provides an example TCL script to compile it's libraries into ModelSim. 

http://www.altera.com/support/examples/tcl/tcl-modelsim.html
0 Kudos
Altera_Forum
Honored Contributor II
864 Views

Thanks, I tried it but it didn't work. Because Modelsim is in server, so I think I need to figure out the library path in server and modify the TCL script. I will try to use GUI later.

0 Kudos
Altera_Forum
Honored Contributor II
864 Views

You need to copy files from Quartus (eda/sim_lib) to the server and then modify line 4 in the script accordingly.

0 Kudos
Altera_Forum
Honored Contributor II
864 Views

 

--- Quote Start ---  

You need to copy files from Quartus (eda/sim_lib) to the server and then modify line 4 in the script accordingly. 

--- Quote End ---  

 

 

Thanks so much, I will try it soon.
0 Kudos
Reply