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

opcCreateQuery

opcCreateQuery( 
?name t_name
[ ?category t_category ]
[ ?appName t_appName ]
[ ?expressions l_expressions ]
)
=> t / nil

Description

Defines a query that can be instantiated in a cellview to generate a set of objects matching the expressions that constitute the Navigator custom query.

Arguments

t_name

Name of the query. The name is displayed where queries can be instantiated, for example, in the Navigator assistant. Example: "MultiBit"

t_category

Name of the category the query will be placed under. If not specified "Miscellaneous" is used. Example: "Design Exploration"

t_appName

Name of the application where the query can be applied. If you do not specify this, you can apply the query in any application. Example: schematic

l_expressions

List of expressions that define the content in terms of design objects for the query. Expressions should be created using opcCreateCondition.

Value Returned

t

Query is created successfully.

nil

Failed to create query.

Examples

Create a query containing iterated instances and buses.

condition = opcCreateCondition(?attrName 'Bits ?opName "!=" ?value "1")

instExpression = opcCreateExpression(?dataSource "Instances" ?conditions list(condition))

netExpression = opcCreateExpression(?dataSource "Nets" ?conditions list(condition))

opcCreateQuery(?name "MultiBit" ?category "Design Exploration" ?expressions list(instExpression netExpression))

Related Topics

opcCreateCondition


Return to top
 ⠀
X