• 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. Getting schematic instances from multiple open schemati...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 144
  • Views 16334
  • 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

Getting schematic instances from multiple open schematics

shajujan
shajujan over 11 years ago

Hi,
 
I want write a skill routine that lets the user interactively select instances from multiple schematics & get those instance names. I tried geAddSelectPoint(), but that will prompt the user to select instances only from the current cellview. I tried dbGetOpenCellViews(), but that will get me all the open cellviews in memory including the ones not open currently.
 
Any ideas on how to get started will be much appreciated.
 
Thanks,
Shaju 
 
 
  • Cancel
Parents
  • shajujan
    shajujan over 11 years ago

    Thanks. Both are excellent suggestions. But I'm doing this to select instances for an ADE-XL session. So I found an easier way to do this & tired using "asiSelectInst" with this code: 

        ;get a unique form handle 

        win  = sprintf( nil "%s" hiGetCurrentWindow() )

        form = concat( 'iphdcopTabForm substring(win 8 strlen(win)) )

     

        ;top level form

        unless( boundp(form) 

            hiCreateAppForm(

                 ?name          form 

                 ?formTitle    "Inphi DC Operating Point Report" 

                 ?initialSize   290:200

                 ?buttonLayout  list(

                                    'Empty 

                                     list( 'Create\ Report 'IPHdcopTabCB )

                                     list( 'Close 'hiFormClose )

                                )

     

                 ?fields        list( 

                                    hiCreateStringField(

                                            ?name           'cell

                                            ?prompt         "Test Bench"

                                            ?defValue       axlGetSessionCellName( ses )

                                            ?editable       nil

                                    ) 

                                    hiCreateCyclicField(

                                            ?name           'test

                                            ?prompt         "Select Test" 

                                            ?choices        cadr( axlGetTests(axldb) )

                                    )

                                    hiCreateRadioField(

                                            ?name           'mode

                                            ?prompt         "Sort by"

                                            ?choices        list("Corner" "Instance")

                                            ?defValue       "Corner"

                                    )

                                    hiCreateButton(

                                            ?name           'select

                                            ?buttonText     "Select Instance"

                                            ?callback       "asiSelectInst('inst ?form form)"

                                    )

                                    hiCreateStringField(

                                            ?name           'inst

                                            ?prompt         "Instances"

                                    )

                                )

            )

        )

     

        form->asiSession = asiGetCurrentSession()

        hiDisplayForm(form)


     But I get this warning when I hit the select button & no instances are selected.

     *Warning* No window and/or doneProc argument passed to

              "astiSelectInst", selection not started

     

    Any ideas? 

     

    Thanks,

    Shaju 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • shajujan
    shajujan over 11 years ago

    Thanks. Both are excellent suggestions. But I'm doing this to select instances for an ADE-XL session. So I found an easier way to do this & tired using "asiSelectInst" with this code: 

        ;get a unique form handle 

        win  = sprintf( nil "%s" hiGetCurrentWindow() )

        form = concat( 'iphdcopTabForm substring(win 8 strlen(win)) )

     

        ;top level form

        unless( boundp(form) 

            hiCreateAppForm(

                 ?name          form 

                 ?formTitle    "Inphi DC Operating Point Report" 

                 ?initialSize   290:200

                 ?buttonLayout  list(

                                    'Empty 

                                     list( 'Create\ Report 'IPHdcopTabCB )

                                     list( 'Close 'hiFormClose )

                                )

     

                 ?fields        list( 

                                    hiCreateStringField(

                                            ?name           'cell

                                            ?prompt         "Test Bench"

                                            ?defValue       axlGetSessionCellName( ses )

                                            ?editable       nil

                                    ) 

                                    hiCreateCyclicField(

                                            ?name           'test

                                            ?prompt         "Select Test" 

                                            ?choices        cadr( axlGetTests(axldb) )

                                    )

                                    hiCreateRadioField(

                                            ?name           'mode

                                            ?prompt         "Sort by"

                                            ?choices        list("Corner" "Instance")

                                            ?defValue       "Corner"

                                    )

                                    hiCreateButton(

                                            ?name           'select

                                            ?buttonText     "Select Instance"

                                            ?callback       "asiSelectInst('inst ?form form)"

                                    )

                                    hiCreateStringField(

                                            ?name           'inst

                                            ?prompt         "Instances"

                                    )

                                )

            )

        )

     

        form->asiSession = asiGetCurrentSession()

        hiDisplayForm(form)


     But I get this warning when I hit the select button & no instances are selected.

     *Warning* No window and/or doneProc argument passed to

              "astiSelectInst", selection not started

     

    Any ideas? 

     

    Thanks,

    Shaju 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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