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

asiDefineDataMappingFunction

asiDefineDataMappingFunction( 
o_tool 
s_dataType
s_function
)
=> s_function

Description

Defines the data mapping functions.

Arguments

o_tool

Simulation tool object

s_dataType

Datatype for the data access function.

Valid Values: VT, VF, VS, IT, IF, IS, VDC, IDC, VTRE, OP, OPT, MP, VN2, VNP, and VNPP

s_function

Name of the data mapping function that you write to convert the Cadence SPICE PSF name to your name. Typically, you use one of the following:

  • asi<yourSimulator>MapNetName
  • asi<yourSimulator>MapTerminalName
  • asi<yourSimulator>MapInstanceName

Callback parameter list: (s_dataDir l_specifier ) s_dataDir specifies the data directory, and l_specifier is a list containing the name of the item to look for in the PSF file.

Value Returned

s_function

Returns the name of the data mapping function.

Examples

Calls the XYZMapNetName function to convert the Spectre-like net name to the net name in the PSF file of the XYZ simulator. For example, you might use this function to convert lower case characters to uppercase, or you might convert the hierarchical delimiter (^) to the hierarchical delimiter for your simulator.

asiDefineDataMappingFunction( tool 'VT 'asiXYZMapNetName )
procedure( asiXYZMapNetName( dataDir specifier )
    ; replace ^ by . in net names...
    specifier = asiMapNetName( dataDir specifier )
    rplaca(
     specifier
artStrSubstitute( car( specifier ) "^" "." )
)
)

Return to top
 ⠀
X