Functions to Work with Model Files
To work with the model files associated with a testbench, you can use the following SKILL functions:
A few examples that show how to add or view the model files associated with the tests are given below.
Example 1
Returns the model file name for the first model associated with a test:
session = (axlGetWindowSession (hiGetCurrentWindow))
=> "session0"
x_mainSDB = (axlGetMainSetupDB session)
=> 1001
axlGetTests(x_mainSDB) => (1004 ("opamp090:full_diff_opamp_AC:1" "opamp090:full_diff_opamp_TRAN:1")
)
testSession = axlGetToolSession(axlsession, "opamp090:full_diff_opamp_AC:1") => sevSession1 oSession = sevEnvironment(testSession) => stdobj@0x1c030668 modelList = asiGetModelLibSelectionList( oSession ) => (("gpdk090.scs" "NN") ("fastmodel.scs" "FF")) asiGetModelLibFile(car(modelList)) => "gpdk090.scs"
Example 2
Removes the existing model files for a test, if any, and set a model file for it:
testName="AC"
=> "AC"
; get the handle to the session session=axlGetWindowSession() => "session0" ; get the handle to the ADE L or test session testSession=axlGetToolSession(session testName) => sevSession1 oSession=sevEnvironment(testSession) => stdobj@0x1e213620 ; remove any existing model files for the test asiSetEnvOptionVal(oSession 'modelFiles (list (list "" ""))) => t (("" "")) ; add a model file to the test asiAddModelLibSelection(oSession "testModelFile1.scs" "ss") => t ; you can use the asiGetModelLibSelectionList function to get the list of all ; the model files atached to the test modelList = asiGetModelLibSelectionList( oSession ) printf("\tModel list = %L\n" modelList ) =>Model list= ("../models/spectre/gpdk045.scs" "mc") ("testModelFile1.scs" "ss") ) => t
Example 3
Returns the details of model files associated with all the tests:
session = (axlGetWindowSession (hiGetCurrentWindow))
> "session0"
x_mainSDB = (axlGetMainSetupDB session)
> 1001
(foreach testName (cadr axlGetTests(x_mainSDB) ) printf( "Test %s\n" testName)
testSession = axlGetToolSession(session testName)
oSession = sevEnvironment(testSession)
modelList = asiGetModelLibSelectionList( oSession )
printf("\tModel list = %L\n" modelList )
)
>Test AC
Model list = (("../adegxl/VAD_workshop_616/gpdk045_v_3_5/gpdk045/../models/spectre/gpdk045.scs" "mc") ("testModelFile1.scs" "ss") )
Test TRAN
Model list = (("gpdk045.scs" "mc") ("ind.scs" "TT") ("cap.scs" "TT") )
Return to top