Forum Discussion
Altera_Forum
Honored Contributor
17 years agoIt sounds like the fundamental question is how to handle two designs that are nearly the same without treating them as two completely independent designs.
Consider using the revisions feature available at "Project --> Revisions". Both designs would be in the same Quartus project. The feature uses a separate .qsf file for each revision. It is up to the user to keep all the settings matching that need to match between the revisions. Create an initial revision that has all the settings that are common between the two designs. Create a new revision from the original and make the needed changes in the second revision. Both revisions can use the same source files (and they can have differences in their two sets of source files). It sounds like for your case you might want to have all the settings be the same in the two revisions except for the device selection and pin locations. When you compile with a particular revision selected, you will get report and programming files with the same base filename as the .qsf filename (the revision name), so you will have two sets of reports and programming files in the same project directory. With a completely separate Quartus project for each design (not using the revisions feature), you can put all the settings that are identical between the two designs (including the .qsf settings that list the source files being used) in a Tcl file and have the .qsf file for each design source the Tcl file. Create the project for one of the designs. Move all the .qsf lines that should be identical between the two designs into a .tcl file, replacing them with "source my_shared_settings.tcl" in the .qsf file. Make a copy of the Quartus project for the second design. Work with both Quartus projects normally for managing settings stored directly in the .qsf files. Using the same .tcl file for both projects ensures that the settings in that file will be identical between designs. There are some limitations to this approach--you might not get what you'd expect if you use the GUI to change a setting that is stored in the Tcl file. Another solution is to use a Tcl file to create all the settings for the two designs with the Tcl file managing what is the same or different between designs.