• 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. command to get list of library's from tech file

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 4150
  • 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

command to get list of library's from tech file

venuuuuu
venuuuuu over 13 years ago

 hi all,

Iam trying to get form  with cyclicfield  for library's which present in tech file. So do you know command to get list of library's from tech file. 

Thank you,

venu

  • Cancel
Parents
  • ebecheto
    ebecheto over 13 years ago

    The command you are looking for is :

    ddGetLibList(). For instance, to get all the names of all the library in the Library browser, just type :

    ddGetLibList()~>name

    Il you want one specific Library, type :

    ddLib=setof(lib ddGetLibList() lib~>name==newLib) ;==>  gives you a list with the dataBase object'(dd:0x...)

    You can the make a loop on all cells in the lib:

    foreach(mapcar cell car(ddLib~>cells) ...)

    Here is a example code that looks into a library and change all master of a cell into the selected  library if the cell is existing in the library but in not mapped to it. (A bit like the option 'Update Instances' in the copyForm)

     

     

      ; ______________________________________________________________________________ defun( updateCellviews (@optional (newLib geGetWindowCellView()~>libName)) let((ddLib cellName updateLib newMast) ; car(setof( inst geGetWindowCellView()~>instances inst~>libName==oldLib))~>master~>?? ddLib=setof(lib ddGetLibList() lib~>name==newLib) ; ddLib~>cells~>name foreach(mapcar cell car(ddLib~>cells) ;___ oop on every cells in the targetted library _______________________________ ; cv=geGetWindowCellView() cellName=cell~>name ;___ use member before dbOpenCellViewByType to prevent warnings ________________ when(member("schematic" dbAllCellViews(car(ddLib) cellName)) cv=dbOpenCellViewByType( newLib cellName "schematic" "schematic"); oppen in append mode (editable) updateLib=setof( inst cv~>instances  inst~>libName!=newLib) foreach(mapcar inst updateLib  ;printf("Not from lib in %L %s %L\n" cv~>cellName newLib inst~>?? ) when(member("symbol" dbAllCellViews(car(ddLib) inst~>cellName)) newMast=dbOpenCellViewByType(newLib inst~>cellName "symbol")  inst~>master=newMast printf("REMASTER : %L\n" inst~>??)) ))))) 

     Hope it helps

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ebecheto
    ebecheto over 13 years ago

    The command you are looking for is :

    ddGetLibList(). For instance, to get all the names of all the library in the Library browser, just type :

    ddGetLibList()~>name

    Il you want one specific Library, type :

    ddLib=setof(lib ddGetLibList() lib~>name==newLib) ;==>  gives you a list with the dataBase object'(dd:0x...)

    You can the make a loop on all cells in the lib:

    foreach(mapcar cell car(ddLib~>cells) ...)

    Here is a example code that looks into a library and change all master of a cell into the selected  library if the cell is existing in the library but in not mapped to it. (A bit like the option 'Update Instances' in the copyForm)

     

     

      ; ______________________________________________________________________________ defun( updateCellviews (@optional (newLib geGetWindowCellView()~>libName)) let((ddLib cellName updateLib newMast) ; car(setof( inst geGetWindowCellView()~>instances inst~>libName==oldLib))~>master~>?? ddLib=setof(lib ddGetLibList() lib~>name==newLib) ; ddLib~>cells~>name foreach(mapcar cell car(ddLib~>cells) ;___ oop on every cells in the targetted library _______________________________ ; cv=geGetWindowCellView() cellName=cell~>name ;___ use member before dbOpenCellViewByType to prevent warnings ________________ when(member("schematic" dbAllCellViews(car(ddLib) cellName)) cv=dbOpenCellViewByType( newLib cellName "schematic" "schematic"); oppen in append mode (editable) updateLib=setof( inst cv~>instances  inst~>libName!=newLib) foreach(mapcar inst updateLib  ;printf("Not from lib in %L %s %L\n" cv~>cellName newLib inst~>?? ) when(member("symbol" dbAllCellViews(car(ddLib) inst~>cellName)) newMast=dbOpenCellViewByType(newLib inst~>cellName "symbol")  inst~>master=newMast printf("REMASTER : %L\n" inst~>??)) ))))) 

     Hope it helps

     

    • 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