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.