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

opcCreateCondition

opcCreateCondition( 
?attrName s_attrName
?opName g_opName
?value t_value
)
=> nil / list

Description

Defines a condition to be used in Navigator custom queries.

Arguments

?attrName s_attrName

Attribute for the condition, for example, Name, Bits, Placement, Ignored, Global, Signal.

?opName g_opName

Operator for the condition with a specified attribute. It can be an arithmetical operator, for example, =, !=, <, <=, >, >=. It can also be a string predicate, for example, Equals or Contains.

?value t_value

Value to be applied on the attribute with the specified operator, for example, clock, true, 8.

Value Returned

A SKILL list containing the attribute, operator, and value as elements.

Examples

Define a condition for names that contain the word clock.

condition = opcCreateCondition(?attrName 'Name ?opName "Contains" ?value "clock")

The returned value is ("Name" "Contains" "clock") and can be used in defining expressions.

Related Topics

opcCreateExpression


Return to top
 ⠀
X