• 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 4149
  • 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
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Venu,

    I have no idea what you're asking here, because there aren't libraries in the tech file. Are you maybe trying to find libraries that contain technology databases (i.e. those which can act as technology libraries?). It's not clear what you really want - perhaps you can explain why you need this, and then it will be more apparent.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • venuuuuu
    venuuuuu over 13 years ago

    Hi Andrew,

     Simply i dont want to type in CIW  "cv = dbOpenCellViewByType("venu" "mic2850_dig"     "layout" nil "a")" for evry cell before i execute some functions. By doing this sript i can select which library, cell, cellview, viewtype,mode etc. How can i get this. 

    Thank you,

    venu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    By the way, doing a setof on ddGetLibList() is unnecessary to find the dd object for a specific library. You can just do ddGetObj("theLibName") to get the library object. So you can then do:

      foreach(cell ddGetObj("myLib")~>cells
        foreach(view cell~>views
          printf("Cell: %s View %s\n" cell~>name view~>name)
       )
    )

    don't really need mapcar either unless you are using the return value.

    Not sure if this quite what venu was asking - his question still didn't really make sense.

    Regards,

    Andrew.

     

    • 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