Forum Discussion

wa_itd's avatar
wa_itd
Icon for New Member rankNew Member
22 hours ago

Modifying and/or hiding interfaces based on component parameters?

I am working in Quartus Prime 26.1 with Platform Designer. I have created a _hw.tcl file for my new component. I would like to hide some interfaces based on the component parameters; for example, "Enable AXI-Stream Output" would un-hide an optional AXI-Stream interface.

I have tried using an elaboration callback (described here), but Platform Designer complains upon loading the _hw.tcl file, stating that the "Component Editor does not save TCL callbacks", and asks me to remove the callback.

I cannot replace ENABLE true with ENABLE [get_parameter_value ... ] either; this also causes an error.

Any help would be greatly appreciated!

3 Replies

  • I have since discovered that there is no problem if the _hw.tcl is loaded without the Component Editor GUI. So, perhaps the following questions are more important:

    • How is it possible to load a _hw.tcl file without clicking "New Component" (thus opening the Component Editor)?
    • How can you use callbacks when the _hw.tcl file is not located in the project directory?
    • sstrell's avatar
      sstrell
      Icon for Super Contributor rankSuper Contributor

      You create the component with Component Editor first and then you simply edit the _hw.tcl file the tool creates manually.  Going back to the Component Editor will always create a new _hw.tcl without your customizations (backs up the previous file as _hw.tcl~).

      • wa_itd's avatar
        wa_itd
        Icon for New Member rankNew Member

        Thanks for your comment! I am wondering though, how do you then test the _hw.tcl that you've modified? Other than placing the file in the project directory and restarting Platform Designer such that it is reloaded? Feels like there should be an easier way...