schProduceUniqueCVHier
schProduceUniqueCVHier(s_visitCB d_topCellView g_viewNameList[g_viewStopList] ) => t / nil
Description
Traverses a design hierarchy and invokes a procedure callback for each unique cellview.
When invoked, the s_visitCB procedure is passed with the arguments d_cellViewId, x_depth, l_hierPath, and g_inStopCellView.
- d_cellViewId is the cellview being visited.
- x_depth is the cellview depth in the hierarchy.
- l_hierPath is a list of cellviews in the hierarchical path.
- g_inStopCellView is a Boolean to indicate whether the visited cellview is in the viewStopList.
Arguments
|
An ordered list of view names to bind to during traversal (either a string or list of strings). |
|
|
A list of view names at which to stop traversal (either a string or list of strings). |
Value Returned
Examples
(procedure (CCSFindSchematicViews @optional (win (hiGetCurrentWindow)))
(let (res)
(procedure (visit cv depth hierPath inStopList)
(setq res (cons cv res)))
(schProduceUniqueCVHier 'visit win->topCellView "schematic symbol" "symbol")
res))
(procedure (CCSCellViewName cv) (lsprintf "%s.%s:%s" cv->libName cv->cellName cv->viewName))
(foreach cv (CCSFindSchematicViews) (printf "%s\n" (CCSCellViewName cv)))
Return to top