Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

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

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.

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.