Home > Community > Forums > Custom IC SKILL > Selecting all instances in a cellview without opening window view

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Selecting all instances in a cellview without opening window view 

Last post Thu, Aug 15 2013 9:14 AM by theopaone. 3 replies.
Started by lc2710 14 Aug 2013 04:15 AM. Topic has 3 replies and 576 views
Page 1 of 1 (4 items)
Sort Posts:
  • Wed, Aug 14 2013 4:15 AM

    • lc2710
    • Not Ranked
    • Joined on Wed, Aug 14 2013
    • Posts 3
    • Points 60
    Selecting all instances in a cellview without opening window view Reply

     Hi all,

    I am writing a program which involves displaying the heirarchical tree of all the instances and nets in a Cadence cell, exactly like it appears in the side of the cellview in Cadence. To do this I am writing a .restore file to the command line which should select all objects in the cellview. My problem is that I don't want my program to open Cadence, but can't find a way to select all the objects in a cellview without having the view window open and using the function geSelectAll().

     

    Is this possible to do? 

     

    All help is much appreciated

    Louis

    • Post Points: 20
  • Wed, Aug 14 2013 6:42 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 396
    • Points 7,460
    Re: Selecting all instances in a cellview without opening window view Reply

    I'm not sure why you want to "select" the items. You can loop through all the instances in a cellview without opening it in a window if you have the cellview id:

    cvId = dbOpenCellViewByType("myLib" "myCell" "myView")
    foreach(inst cvId~>instances
        printf("Lib: %s  Cell: %s  View: %s  Inst Name: %s\n" inst~>libName inst~>cellName inst~>viewName inst~>name)
    )

    Derek

    • Post Points: 20
  • Thu, Aug 15 2013 2:46 AM

    • lc2710
    • Not Ranked
    • Joined on Wed, Aug 14 2013
    • Posts 3
    • Points 60
    Re: Selecting all instances in a cellview without opening window view Reply

     Hi Derek,

    Thanks alot that's just what I needed! 

    Louis

    • Post Points: 20
  • Thu, Aug 15 2013 9:14 AM

    • theopaone
    • Top 50 Contributor
    • Joined on Tue, Feb 12 2013
    • Cedar Park, TX
    • Posts 140
    • Points 2,085
    Re: Selecting all instances in a cellview without opening window view Reply

     To generate a tree, you may want to loop through the instance headers instead of all the instances. The instHeader (cvId~>instHeaders) points to a master and to all the instances which use that master. A regular hierarchical cell has only one instHeader pointing to all of its instances. A pcell or via may have multiple instHeaders, one for the superMaster and one for each variant master.

    Ted

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by lc2710 at 14 Aug 2013 04:15 AM. Topic has 3 replies.