• 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. change lib name and cell name

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 142
  • Views 15383
  • 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

change lib name and cell name

Nhumai
Nhumai over 5 years ago

Hi , 

my design contain standard cells from lib sc12sk_7m_v1 now I need to switch it to use standard cell from lib sc12tps_lvt_v1 . The cells name in sc12tps_lvt_v1 have "_l" at the end compare to cells name in sc12sk_7m_v1. I came up with a script below but it doesn't work and didn't give me any errors. Please let me know what is wrong 

thanks 

Nhumai 

procedure( NlsbfLibReplace(libraryName)
lib1 = ddGetObj(libraryName)
foreach( cell lib1->cells
   viewmatch = nil
   foreach( view (cell->views)
      if( (view->name == "schematic")  then  viewmatch = t )
   )

   if( (viewmatch == t) then
      win = geOpen(?window hiCreateWindow('default "graphics" "test1") ?lib libraryName ?cell cell->name ?view "schematic" ?viewType "schematic" ?mode "a")
      rep1 = getWindowRep(win)
      insts = rep1->instances
      foreach(instHeader cv~>instHeaders
             when(instHeader~>libName=="sc12sk_7m_v1" && rexExecute(instHeader~>cellName)
                  newCellName=strncat(instHeader~>cellName "_l" 1)
                  printf("The left coord is %L\n" newCellName)
                  dbSetInstHeaderMasterName(instHeader "sc12tps_lvt_v1" newCellName instHeader~>viewName)


      )
     )


      schHiCheckAndSave()
      hiCloseWindow(win)
   )
  )
)

  • Cancel
Parents
  • skillUser
    skillUser over 5 years ago

    Hi,

    Try some of the pre-written SKILL examples perhaps (e.g. from the Custom IC Design SKILL Code Library [Custom IC Design SKILL Code Library]) ?

    Here's a link to one for changing cell references: 11330942

    Here's another for changing specific cells in a cellview: 11330954

    Hopefully this helps you.

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 5 years ago

    Hi,

    Try some of the pre-written SKILL examples perhaps (e.g. from the Custom IC Design SKILL Code Library [Custom IC Design SKILL Code Library]) ?

    Here's a link to one for changing cell references: 11330942

    Here's another for changing specific cells in a cellview: 11330954

    Hopefully this helps you.

    Best regards,

    Lawrence.

    • 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