• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Field to display all nets in layout and filter as I typ...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 149
  • Views 10742
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Field to display all nets in layout and filter as I type

prasadtammana
prasadtammana over 3 years ago

Hi, 

I want to create a field with dropdown menu that displays all net names in my layout and it should filter the net names as I type. leCreateNetField is working as I expected but its not allowing me to add any new net name that's not present in the list. 

So, I started using hiCreateComboField, which allows adding a new net name also. But I'm missing the filter option. Either I should completely type the net name or select one of the all net names displayed from drop down. Is there a way to add filter feature to hiCreateComboField? 

Thanks,

Prasad

  • Cancel
  • mbracht
    mbracht over 3 years ago

    Hi Prasad,

    The hiCreateComboField function lets you define a modifyCallback that is triggered whenever a change is made in the field. I haven't tried this out myself yet but reconfiguring the choices of the combo field in that callback should work.

    regards
    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mbracht
    mbracht over 3 years ago

    I just found a piece of example code that does the job...

    let((cf (cv (geGetWindowCellView)) )
        cf=hiCreateComboField(
            ?name 'cf
            ?items cv~>nets~>name
            ?modifyCallback
                lambda((field form value flag)
                    let((len)
                        len=strlen(value)
                        form->cf->items=setof(item form->cf->allItems
                            strncmp(item value len)==0) t)))
        cf->allItems=cf->items
        hiCreateAppForm(
            ?name 'CCFform
            ?fields list(cf))
        hiDisplayForm(CCFform))

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • prasadtammana
    prasadtammana over 3 years ago in reply to mbracht

    Hi Max, Thanks for the quick reply. Adding modifyCallback function as you suggested is filtering the net names. But I want to have more interactive drop down menu just like in leCreateNetField, where the drop down menu highlites the net names that matches with the net name that we are typing. 

    Do you know if there is a way to add an option to leCreateNetField to allow it to take new inputs as well? 

    Thanks,
    Prasad 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 3 years ago in reply to prasadtammana

    Hi Prasad,

    The leCreateNetField is completely custom made by Cadence so you won't have the possibility to tweak it

    Here is a quick overview of what is inside the different fields:

    ;; -------------------------------------------------------
    ;; Combo Field
    ;; -------------------------------------------------------

    > (hiCreateComboField ?name 'combo_field ?items (geGetEditCellView)~>nets~>name)
    comboStruct@0x3dfed6e0

    > comboStruct@0x3dfed6e0->?
    (_focusInCallback usedIn invisible items highlightType
        nextField enabled editable echoOn prompt
        _formatSpec _modifyCallback _callback fieldType hiFieldSym
        modified defValue lastValue _activeUT value
    )

    ;; -------------------------------------------------------
    ;; Net Field
    ;; -------------------------------------------------------

    > (leCreateNetField 'nets_field ?window (hiGetCurrentWindow))
    nativeStruct@0x3dfed6f8


    > nativeStruct@0x3dfed6f8->?
    (usedIn invisible enabled _userData _factory
        prompt fieldType hiFieldSym _activeUT
    )

    > nativeStruct@0x3dfed6f8->_userData
    (leNetComboBoxNative name "leNetComboBoxNative" value ""
        window window:3 callback "" maxVisibleItems
        10 enabled nil invisible nil
        maxWidth 0
    )

    ;; -------------------------------------------------------
    ;; Layer Field
    ;; -------------------------------------------------------

    > (leCreateLayerField 'layer_field ?techFile (techGetTechFile (geGetEditCellView)))
    nativeStruct@0x3e24d9e0

    > nativeStruct@0x3e24d9e0->?
    (usedIn invisible enabled _userData _factory
        prompt fieldType hiFieldSym _activeUT
    )

    > nativeStruct@0x3e24d9e0->_userData
    (leLPPComboBoxNative name "leLPPComboBoxNative" value ""
        callback "" appendChoices nil prependChoices
        nil maxVisibleItems 10 syncedPaletteWindow nil
        techFile db:0x2454c01a layerFunction "" enabled
        nil invisible nil maxWidth 0
    )

    As you can see, there is not much _userData available in the leCreateNetField to customize it

    You could request an enhancement of the combo fields to make them more interactive. This would be a nice feature as they are often used

    Hope this helps you a little

    Cheers,

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information