• 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. retrieve the net name connected to pcell symbol

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 10618
  • 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

retrieve the net name connected to pcell symbol

mctang21
mctang21 over 3 years ago

Hi 

I have pcell symbol. I would like to invoke callback "update_net_prop" when a CDF parameter of this pcell instance is updated. The callback would change the property of the net connected  to the terminal of this pcell instance. How do I retrieve the net name connected to the terminal of this pcell instance ?

cdfCreateParam( cdfId
?name "padNum"
?prompt "Number of ports"
?defValue 1
?type "int"
?display "artParameterInToolDisplay('padNum)"
 ?callback "update_net_prop()"
)

Thanks,

ManChak

  • Cancel
Parents
  • mctang21
    mctang21 over 3 years ago

    Hi

    I figured out how to retrieve the net myself already. Please ignore my question above. How do I specify  "Form Done Procedure" using SKILL code ?

    I added "PrintSchNet"  to the form manually.

    Thanks,

    ManChak

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Kevin Buck
    Kevin Buck over 3 years ago in reply to mctang21

    Define it in your .cdsinit file.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mctang21
    mctang21 over 3 years ago in reply to Kevin Buck

    Hi Kevin,

    Thank you for your info. Could you tell me the syntax which associates my pell_symbol,il and CDF.il with post done procedure in .cdsinit ? 

    Thanks,

    ManChak

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Kevin Buck
    Kevin Buck over 3 years ago in reply to mctang21

    I don't understand your question. You need to define the function in your .cdsinit file:

    procedure( printSchNet()
              ;Put your code here
    )
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mctang21
    mctang21 over 3 years ago in reply to Kevin Buck

    HI Kevin,

    Thank you. My original question is how to specify printScNet in the CDF form without editing CDF form manually after coding " procedure( printSchNet()" ?

    Is it doable ?

    Thanks,

    ManChak

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Kevin Buck
    Kevin Buck over 3 years ago in reply to mctang21

    Yes. Brief example code:

    /****************************************************/
    LIBRARY = "test_8nm_lib"
    CELL = "myparsubckt"
    /****************************************************/

    let( ( libId cellId cdfId )
    unless( cellId = ddGetObj( LIBRARY CELL )
    error( "Could not get cell %s." CELL )
    )
    when( cdfId = cdfGetBaseCellCDF( cellId )
    cdfDeleteCDF( cdfId )
    )
    cdfId = cdfCreateBaseCellCDF( cellId )


    cdfId->doneProc = "printSchNet()"
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Kevin Buck
    Kevin Buck over 3 years ago in reply to mctang21

    Yes. Brief example code:

    /****************************************************/
    LIBRARY = "test_8nm_lib"
    CELL = "myparsubckt"
    /****************************************************/

    let( ( libId cellId cdfId )
    unless( cellId = ddGetObj( LIBRARY CELL )
    error( "Could not get cell %s." CELL )
    )
    when( cdfId = cdfGetBaseCellCDF( cellId )
    cdfDeleteCDF( cdfId )
    )
    cdfId = cdfCreateBaseCellCDF( cellId )


    cdfId->doneProc = "printSchNet()"
    • 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