Wednesday, February 08, 2012     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Getting list of objects in a database
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
ahamlett
Posts: 28
Online: User is Offline
12/19/2007 9:43 AM  
Say I have this code which opens a cell view and assigns the database id to test.
test = dbOpenCellViewByType("library" "cellname" "view")

Is there a way to get a list of all the available objects in this database?
Right now, I loop through each object and print its name.
<br>
foreach(i test~>instances<br>
            println(i~>cellName)<br>
)<br>

For debugging I would like to be able to print a tree of the heirachy of the database. Is this possible?
Does the
dbFindProp()
function have something to do with this?

http://83p.unitedti.org
rairaj
Posts: 17
Online: User is Offline
12/19/2007 10:27 AM  
Design->Hierarchy->Tree has already got all the info apart from top level shapes which can be accessed using:
test~>shapes

Raj
dmay
Posts: 29
Online: User is Offline
12/19/2007 10:29 AM  
Sourcelink has some examples:

http://sourcelink.cadence.com/docs/files/Application_Notes/2002prev/Framework_Application_Notes/Database_Traversal.html

-Derek
ahamlett
Posts: 28
Online: User is Offline
12/19/2007 10:34 AM  
Posted By rairaj on 12/19/2007 10:27 AM
Design->Hierarchy->Tree has already got all the info apart from top level shapes which can be accessed using:
test~>shapes

Raj
That gives me the hierarchy of cells, but I want objects such as
test~>libName
.
I need a list of all the data objects available inside the test database such as libName, cellName, layerName etc.

http://83p.unitedti.org
adbeckett
Posts: 248
Online: User is Offline
12/19/2007 10:36 AM  
Try the attached code. I think you'll find it useful...

Regards,

Andrew.


Attachment: dataBrowser.il

rairaj
Posts: 17
Online: User is Offline
12/19/2007 10:40 AM  
test~>? gives you all the attributes
test~>?? gives all the attributes and their values

But remember that some of the values could be db ID's so a further foreach will be required.

dataBrowser.il will give you a graphic represenation of database so you can drill down by just a click.
ahamlett
Posts: 28
Online: User is Offline
12/19/2007 10:57 AM  
Posted By adbeckett on 12/19/2007 10:36 AM
Try the attached code. I think you'll find it useful...

Regards,

Andrew.

Thank you!

Posted By rairaj on 12/19/2007 10:40 AM
test~>? gives you all the attributes
test~>?? gives all the attributes and their values

But remember that some of the values could be db ID's so a further foreach will be required.

dataBrowser.il will give you a graphic represenation of database so you can drill down by just a click.
Thank you too!

This was exactly what I have been looking for :)

http://83p.unitedti.org
ahamlett
Posts: 28
Online: User is Offline
12/19/2007 11:02 AM  
Posted By adbeckett on 12/19/2007 10:36 AM
Try the attached code. I think you'll find it useful...

Regards,

Andrew.


I didn't even have to load dataBrowser.il because TI had already loaded it into Cadence!

I can learn a lot from that source code. Thanks!

http://83p.unitedti.org
Posting to forums is available to community members only.
Login or Register

Forums > Custom IC > Shared code - SKILL > Getting list of objects in a database


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.