Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

printVariables

printVariables( 
t_pattern 
[ p_outport ] 
) 
=> t

Description

Prints all variable names that contain the given substring or match the given regular expression, along with their values.

This function is useful for finding variables that contain the same substring or finding an individual variable when you know only part of the name. The printVariables function also prints the value of each variable it finds.

Arguments

t_pattern

Pattern to search for.

p_outport

Optional output port. The default is poport.

Value Returned

t

Always returns t and prints the value of each variable it finds.

Examples

Prints all the variables with their values that contain the substring stack and returns t. The underscore (_) at the beginning of _stacktrace indicates that it is an internal system variable.

printVariables( "stack" ) 
_stacktrace 0
=> t

Related Topics

Debug Functions

listVariables

printFunctions


Return to top
 ⠀
X