nlIsSmartExtractedView
nlIsSmartExtractedView(
o_cellViewHandle
)
=> t / nil
Description
Identifies if the currently netlisted cellview is of the type smart_view. You can use this function in custom netlist procedures to modify the syntax printed to the netlist as required. For example, you can modify the syntax to determine if the printing of parenthesis needs to be enabled or disabled when printing the port connections of the instance.
Arguments
Value Returned
Examples
(nlIsSmartExtractedView ((nlGetCurrentCellView (nlGetNetlister inst)))
=> t
The following snippet shows how to use this function in a custom netlist procedure:
(defun _myCustomNetlistProc (instance) (let (netlister isNextGenExtrCV currentCV signalList)
netlister = (nlGetNetlister instance)
currentCV = (nlGetCurrentCellView netlister)
isNextGenExtrCV = (nlIsSmartExtractedView currentCV)
signalList = (nlGetSignalList instance)
(when (not isNextGenExtrCV) nlPrintString(netlister sprintf(nil "(")))
(foreach signal signalList nlPrintString(netlister sprintf(nil "%s " signal)))
(when (not isNextGenExtrCV) nlPrintString(netlister sprintf(nil ") ")))
)
)
=> t
Return to top