Forum Discussion

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

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

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)

6 Replies

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

    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).

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

    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.

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

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

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

    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

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

    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.