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

Why QSys does not create generics for my component in the instantiations

Altera_Forum
Honored Contributor II
2,182 Views

Question of the day: 

 

1) have my own component created in Qsys, it has many generics. Some of them I want to tweak in the instance. 

https://www.alteraforum.com/forum/attachment.php?attachmentid=6455  

 

2) when I instantiate two such components I have to tweak this generic in the QSys. This works, if I reopen QSys again, it shows correctly setup generics when double-clicking on the instantiated component 

 

3) I generate the data for synthesis. When looking on the modules produced, and looking how my two components get instantiated, QSys does not care at all what kind of generics I had set-up, it just instantiates the two instances with default generics as set by my original component 

https://www.alteraforum.com/forum/attachment.php?attachmentid=6456  

 

What is wrong? Is this a bug? Did I forget something to do? (looks like bug)
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
791 Views

It is a bug. See page 19 of the "Quartus II Software Version 12.0 SP2 Release Notes" document (sorry, can't post links as it's my first post, just google the document's title to find it).

0 Kudos
Altera_Forum
Honored Contributor II
791 Views

Yes, thanks for the answer. I've already asked at altera. It seems that one can add a command to the hw.tcl generated by 12.0sp2 to get the correct behaviour.

0 Kudos
Altera_Forum
Honored Contributor II
791 Views

For your and anyone's information, the bug is fixed in the newly released Quartus 12.1.

0 Kudos
Altera_Forum
Honored Contributor II
791 Views

Yes. I confirm that this one is corrected in the 12.1. One has to be however aware, as it was not corrected completely. If your generic uses type 'boolean', it will fail during quartus compilation. Altera recommends for the moment to convert all boolean types in generics to integer. The same issue is with 'time' type

0 Kudos
Altera_Forum
Honored Contributor II
791 Views

Has this been fixed in the new version of quartus, v13?

0 Kudos
Altera_Forum
Honored Contributor II
791 Views

Also after an answer on this one. Currently trying Quartus 12.1 

Waiting on a new licence key to try v13 as ours expired a few days before 13 was released. 

 

Same problem stopped me using qsys well over a year ago.
0 Kudos
Reply