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.

Compiling into a specific Modelsim library

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
Hello,

With Modelsim, every VHD file that I compile goes automatically into library "work".
How can I make a file compile into a different library?
 

Hello,

With Modelsim, every VHD file that I compile goes automatically into library "work".
How can I make a file compile into a different library?
In the project window, right click the file, select 'Properties' and it will pop up a window where you can select the library. This assumes that you have already created the library in the first place. If you haven't done that then you create the library on the library on the 'Library' tab in the 'Project' window.

Kevin Jennings
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Or from the command line:

vlib mylib
vcom myfile.vhd -work mylib
Vcom anotherfile.vhd -work mylib
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
K-J,

I assume that the solution you suggested requires me to open a new project in the first place - correct?
 

You can do what kj suggested without a project. Anything you add will be added to the local modelsim.ini file.

- - - Updated - - -

It's the GUI version of the commands I suggested.
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
You can do what kj suggested without a project. Anything you add will be added to the local modelsim.ini file.

How? It seems that without opening a project and without using the command line all I can do is compile the file - and in that case it goes directly into the "work" library...
Attached is a snapshot of the Modelsim screen on my home computer:
What buttons should I push in order to add a file to a library that's not the "work" library?
 

Attachments

  • modelsim_screen.png
    modelsim_screen.png
    49.6 KB · Views: 65

How? It seems that without opening a project and without using the command line all I can do is compile the file - and in that case it goes directly into the "work" library...
- If you have a project, you can use either my directions or TrickyDicky's.
- If you just want to compile some random file that is not part of the project (or you choose to not use Modelsim projects), then you must use TrickyDicky's command line approach.

Kevin Jennings
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top