Talk About Network

Google





Computer Aided Design - CAD > Cadence > Re: How to get ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 3937 of 4397
Post > Topic >>

Re: How to get ALL instances in Virtuoso

by Riad KACED <riad.kaced@[EMAIL PROTECTED] > Mar 26, 2008 at 01:07 PM

Hi Martin,

I'm just wondering if you want something similar to what you get with
Design->Hierarchy->Tree from the layout window, but displayed
differently.
All what you need actually is to traverse the hierarchy and do the
processing you want to do at each level.
This issues has already been discussed in this forum (for schematic).
You can find more :
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/d5b240cdfcc744cf/629593a0e57a8802?lnk=gst&q=re****t+hierarchy#629593a0e57a8802

You can use the Jim's function as a starting point.

You can also use the following piece of code (It comes with the skill
training from Cadence) :
; Function starts here
procedure( TrHierarchyTraversal( cellView listSoFar )
  foreach( master cellView~>instances~>master
    let( ( nextCellView )
      nextCellView = master
      cond(
            ( null( nextCellView ) ;;; couldn't find appropriate view
             nil )
            ( member( nextCellView listSoFar ) ;;; we've already
processed this cellView
             nil )
            ( t
	     listSoFar =
	    	     TrHierarchyTraversal(
	    		     nextCellView
	    		     cons( nextCellView listSoFar )
	    	     )
	     )
      ) ; cond
    ) ; let
  ) ; foreach
  listSoFar ;;; return listSoFar augmented by cellView's contributions
) ; procedure
; functions ends here

You can then execute this code by typing the following :
TrHierarchyTraversal(dbOpenCellViewByType("myLib" "myCell" "layout")
nil)

You need to fine tune this function to print what you want to print,
that's not a very hard job ;-)
I think It's a good starting point for you're asking for.

Feel free to get in touch if you need further help on this.

Good luck !

Riad.
 




 5 Posts in Topic:
How to get ALL instances in Virtuoso
"19martin84" &l  2008-03-26 03:44:15 
Re: How to get ALL instances in Virtuoso
Riad KACED <riad.kaced  2008-03-26 13:07:14 
Re: How to get ALL instances in Virtuoso
"19martin84" &l  2008-03-26 15:24:23 
Re: How to get ALL instances in Virtuoso
Riad KACED <riad.kaced  2008-03-26 15:44:31 
Re: How to get ALL instances in Virtuoso
Dominic DuVarney <srla  2008-04-01 07:40:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 5:51:58 PST 2009.