• 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. Cellviews default application

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 15455
  • 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

Cellviews default application

psill
psill over 12 years ago

Is there a skill command to get a cellview default application?

I want to search a library and report the default or current application of a cellview.

 

psill 

  • Cancel
  • kb how
    kb how over 12 years ago
    What do u mean application?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

     You can get the viewType easily enough - maybe that's what you mean?

    given a library name:

    procedure(CCFshowViewTypes(libName)
    let((masterObj)
      foreach(cell ddGetObj(libName)~>cells
        foreach(view cell~>views
          ; the * in the file arg gives the "master" file
          masterObj=ddGetObj(libName cell~>name view~>name "*")
          when(masterObj
             printf("%s/%s/%s has viewType %L\n"
             libName cell~>name view~>name
             ddMapGetFileViewType(masterObj)
           )
         )
        )
      )
      t
    ))

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • psill
    psill over 12 years ago

    Sorry I did not clarify the question better.

    I want to search the library and see which application the opens cellview.

    Does the cellview open L, XL, or GXL?

    psill 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    If the default application has been overridden for a cellView, that is done by setting the viewSubType on the cellView. This can only be done for "db" cellViews (e.g. schematics, symbols, layouts), and can be found by looking at:

    cv~>viewSubType

    I'll leave the rest for you...

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • psill
    psill over 12 years ago

    When I drop geGetWindowCellView()~>viewSubType I get nil.

    I also tried  hiGetCurrentWindow(), ddGetobj(lib cell view), and dbOpenCellViewByType(lib cell view masklayout r).

    I tried some of the examples on source link but get the same result from different cellviews and sessions.

    I would like to get an value similar to the function deGetViewType() outputs, without opening the cell.

     My version 6.1.5.500.11

    psill 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    The viewSubType will be nil if the default application has not been set specifically for that cellView; if there's no viewSubType, the viewType is the actual viewType of the cellView.

    You can also set the global default application by using these three cdsenv vars:

    graphic maskLayoutDefaultApp
    graphic schematicDefaultApp
    graphic schematicSymbolDefaultApp

    So the way you'd have to code it to do what you want is to first use the approach I described initially to get the base viewType of the cellView using ddGetObj approach - this can be done without opening the cellView. Then if the viewType is maskLayout, schematic, or schematicSymbol, you'd have to open the cellView using cv=dbOpenCellViewByType(lib cell view) and then check if cv~>viewSubType has been set - if so, you know the subViewType and hence the application used. If it's not set, you'd need to check the cdsenv to see if the global default app has been overridden.

    I'll leave it to you to glue all this together, because what you're trying to do seems a fairly unusual requirement and probably specific to your needs rather than something general purpose.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago
    On the virtuoso documentation in order to set the default Application for a Schematic or Symbol Cellview, to use the following variable in .cdsenv

    graphic schematicDefaultTier string "XL"

    I tried it but every time I want to open a schematic it opens it in L.

    Thanks
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    If you type:

    envGetVal("graphic" "schematicDefaultTier")

    in the CIW, what does it say?

    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