Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

Problem with files lists in QSF.

Altera_Forum
Honored Contributor II
1,166 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
461 Views

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)
0 Kudos
Altera_Forum
Honored Contributor II
461 Views

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.
0 Kudos
Reply