Forum Discussion

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

combining projects

I have two separate projects in folders A and B. I need to include all the design files of project B into project A. I know I can simply copy the files over, but I'd rather not mix the files because of name duplication. Another option would be to copy the folder B into folder A.

Is there a way to do this and leave the files where they are?

3 Replies

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

    Hello,

    you can use design files from multiple directories in a project. Identical filenames should be possible, but design entity names (components, modules, packages etc.) must be unique. The file selection with Add/Remove Files in Project filters all design files from a diretory by default and creates relative references when including files, so the design tree can be moved or restored at a different location.

    Regards,

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

    Quartus automatically reads in files that match what they are looking for in their dirctory or User Libraries(Assignments -> Settings). For example, if the project is called top and top.vhd exists in the directory, Quartus reads it in. If top.vhd calls out a component called egress and there is a file called egress.vhd, Quartus reads that in. Many users rely on this methodology because it works.

    I personally recommned adding exactly the files you need in the Add Files dialogue box. It allows for finer control, it's a better way to document the project, and it prevents common errors when users start making different versions, backups, etc. of existing files.

    One other thing, when you do Add Files and point to a new directory, if its outside of your project directoy, it does the exact path name, i.e. "c:work\myprojects\altera\folderb\filename.vhd".

    I usually change this to relative, i.e. "..\folderb\filename.vhd". There are cases where exact paths are better, but relative paths are often more versatile.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    in my Quartus II version 7.2, references to design files different directories are relativ by default.

    Regards,

    Frank