• 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. Set Library source to ddHiCreateCellComboField.

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 15391
  • 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

Set Library source to ddHiCreateCellComboField.

iguerra
iguerra over 6 years ago

Hi,

Could you please show me the way I can set the library source in order to ddHiCreateCellComboField fills with the cell names accordingly?

Also I have the same question but for ddHiCreateViewComboField in order to fill according to a given cell name.

Thanks and regards,

Ivick.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Hi Ivick,

    The trick is to use ddHiLinkFields. See this little example I just put together:

    /* abLibCellViewComboExample.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Jan 12, 2019 
    Modified   
    By         
    
    Example of using the enhanced lib/cell/view combo fields that support
    type-in completion.
    
    Simply call abLibCellViewComboExample() to create and display the form.
    
    ***************************************************
    
    SCCS Info: @(#) abLibCellViewComboExample.il 01/12/19.09:31:51 1.2
    
    */
    
    procedure(abLibCellViewComboExample()
        let((grid lib cell view libLabel cellLabel viewLabel 
                browse form)
            libLabel=hiCreateLabel(
                ?name 'libLabel ?labelText "Library"
                ?justification 'right
            )
            cellLabel=hiCreateLabel( 
                ?name 'cellLabel ?labelText "Cell"
                ?justification 'right
            )
            viewLabel=hiCreateLabel(
                ?name 'viewLabel ?labelText "View"
                ?justification 'right
            )
            lib=ddHiCreateLibraryComboField( 
                ?name 'lib ?callback "(ddsUpdateSyncWithForm)"
            )
            cell=ddHiCreateCellComboField( 
                ?name 'cell ?callback "(ddsUpdateSyncWithForm)"
            )
            view=ddHiCreateViewComboField( 
                ?name 'view ?callback "(ddsUpdateSyncWithForm)"
            )
            browse=hiCreateFormButton(
                ?name 'browse
                ?buttonText "Browse..."
                ?callback "(ddsSyncWithForm (hiGetCurrentForm) 'browse 'lib 'cell 'view)"
            )
            grid=hiCreateGridLayout(
                'grid
                ?items list(
                    list( libLabel 'row 0 'col 0)
                    list( cellLabel 'row 1 'col 0)
                    list( viewLabel 'row 2 'col 0)
                    list( lib 'row 0 'col 1)
                    list( cell 'row 1 'col 1)
                    list( view 'row 2 'col 1)
                    list( browse 'row 0 'col 2)
                    list( 'col_stretch 0 0)
                    list( 'col_stretch 1 1)
                    list( 'col_stretch 2 0)
                )
            )
            form=hiCreateLayoutForm(
                'abImportParasiticsForm
                "Lib Cell View Example"
                grid
                ?sizePolicy 'horizontalExpanding
            )
            ;----------------------------------------------------------------
            ; Need to both instantiate the form and link the fields so that
            ; the combo-boxes use the other fields to inform the choices
            ;----------------------------------------------------------------
            hiInstantiateForm(form)
            ddHiLinkFields(
                form->lib
                form->cell
                form->view
            )
            hiDisplayForm(form)
        )
    )
    

    Regards,

    Andrew.

    [Note: there is a newer version of this code in this post which is a more flexible general lib/cell/view browser but shows embedding of the grid layout in a vertical box layout)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • iguerra
    iguerra over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    Until now I had the opportunity to apply your suggestion and it worked! 

    Thanks and regards,

    Ivick Guerra.

    • 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