- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am using clearcase dynamic views, so i frequently open modelsim projects e.g. on Drive Y:, when it was originally created on a different Drive, e.g. Y: . Unfortunately, when the modelsim project is created, it will save absolute paths to the source files (e.g. y:\blah\blah.vhd). Is there some way to make modelsim use relative paths (e.g. ..\blah\blah.vhd)? Then i could place the project on any drive and it would still work. Of course i could just edit the .mpf-File manually in a text-editor, but there are several reasons why i don't want to do it this way.Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you add source files to the project you could give the relative path to the files in the "Add files to Project" dialog. If you do the paths in the .mpf will be relative. Hopefully there is a more convenient way of doing it but I do not know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i think Altera NativeLink generated ModelSim .do files also use absolute paths. i normally just do a find/replace to change to relative paths
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should simply edit your .mpf file to modify the path in relative to the mpf file. That's all!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately next time modelsim saves the mpf it puts back the full path name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page