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

asiDefineDataAccessFunction

asiDefineDataAccessFunction( 
o_tool 
s_dataType 
s_dataFunction
)
=> s_dataFunction

Description

Redefines a data access function.

Typically you do not need to redefine a data access function.

Arguments

o_tool

Simulation tool object

s_dataType

Data type for the data access function.

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

s_dataFunction

Name of the data access function that you write to access the data from the Parameter Storage Format (PSF) file.

Value Returned

s_dataFunction

Returns the name of the data access function.

Examples

Calls the XYZVT function, which gets the VT information from the PSF file.

asiDefineDataAccessFunction( tool 'VT 'XYZVT )
    procedure( XYZVT(specifier dataDir simData)
     let((wave daf)
   daf = asiGetDataAccessFunction(asiGetTool('analog) 'VT)
   wave = apply( daf list(specifier dataDir simData))
   wave
  )
)

Alternatively, use asiDefineDataAccessFunction to achieve the same functionality. This would be helpful for user defined data access types. For example, the existing code would work with VT, IT etc., but the code below would work with a new analysis called sp.

procedure( XYZDataAccessSp(specifier dataDir simData)
    let((wave)
     wave = asiGetDrlData("sp" specifier dataDir)
wave
)
) procedure( XYZMapNetNameSp( dataDir specifier )     let(()     specifier = parseString((concat "s" car(specifier) "_" cadr(specifier)))     specifier     )
)

Return to top
 ⠀
X