Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

axlRegisterCustomDeviceFilter

axlRegisterCustomDeviceFilter( 
t_name
s_function
) 
=> t / nil

Description

Adds a custom filter for device instance parameters on the Variables and Parameters assistant pane in ADE Explorer and ADE Assembler.

The default filters are Default, CDF Parameters, and CDF Editable. To add an additional filter, use the axlRegisterCustomDeviceFilter function.

Arguments

t_name

Device instance parameter filter name. This is the name that appears in the Filter drop-down combo box on the Variables and Parameters assistant pane.

Valid Values: Any string

s_function

A symbol for a function that takes db:inst and t_simulator as arguments and returns a list of (property name, property value) lists.

Value Returned

t

Successful registration.

nil

Unsuccessful registration.

Examples

The following example shows how to create and register a custom filter.

First, define a custom filter. For example:

(procedure (myCustomFilter inst simulator)
(list
(list "fw" (get inst "fw"))
(list "l" (get inst "l"))
(list "fingers" (get inst "fingers"))
(list "m" (get inst "m"))
)
)

Then, call axlRegisterCustomDeviceFilter from the CIW as follows:

axlRegisterCustomDeviceFilter("My Filter" 'myCustomFilter)

The function returns t if the registration is successful; otherwise, nil.

On success, the above example adds a new filter, My Filter, to the Variables and Parameters assistant in the GUI. When you apply this filter, only the Finger Width, Length, Fingers, and Multiplier parameters are displayed for instances. All other parameters are filtered out. Note the filtered parameter list in the figure shown below.

Related Topics

Variables and Parameters assistant pane

Working with Device Instance Parameters


Return to top
 ⠀
X