Forum Discussion

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

Problem with files lists in QSF.

Hi all,

I have a problem with the set of files i want to use in my synthesis.

I have two sets of files with exactly same names but are placed in different directories.

The difference lies in functionality of the both although i have given a genric name.

If in rtl one set of files are used the other set will never be used in the syntehsis.

My problem is i want to have both set of files with the same names in the qsf which at present throws an error that the modules cannot be declared more than once.

Is there a way i can use condition in the qsf file like if (condition) then use this set else the other.

Any help will be appreciated.

2 Replies

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

    My first recommendation is to not do this. If the have different contents they should have different names. Your code can then use a generate statement or something like that to call them out.

    The .qsf is not a script, just a location that stores assignments. You could do a pre-flow .tcl script that adds the correct file to the .qsf and removes the incorrect one. This would have the issue in that there's almost no way to tell which one was loaded on a particular build(without searching the .map.rpt to see which one was loaded in)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ok i got you RYSC...Yes i am using the generate statement to call them...Still thanks for the help.. i guess if this ambiguity arises of loading of the build then its better to stay away from such a state.

    Thanks a lot.