Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

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.

Where,

Arguments

s_visitCB

Name of the procedure to be invoked for each cellview.

d_topCellView

The top cellview from where traversal should begin.

g_viewNameList

An ordered list of view names to bind to during traversal (either a string or list of strings).

g_viewStopList

A list of view names at which to stop traversal (either a string or list of strings).

Value Returned

t

The hierarchy was successfully traversed.

nil

No hierarchy traversal was performed.

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
 ⠀
X