• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. ADEXL Test Setup using Skill and asiGetSession Failure

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 14488
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADEXL Test Setup using Skill and asiGetSession Failure

Curtisma
Curtisma over 8 years ago

I'm trying to setup an adexl cellview with a single test.  However everytime I load the script shown below the asiGetSession on line 7 often returns nil and its not clear why that is the case.  Any ideas as to what is causing it to fail to get the session?  Is there a better way to setup the state of that test using SKILL (not ocean)?

ddGetObj("pk1126_sky77366_5_CR_mayberc" "pk1126_01_TB" "adexl" "data.sdb" nil "w")
sessionName = strcat("mysession" (sprintf nil "%d" random()))
axlSession = axlCreateSession(sessionName)
sdb = axlSetMainSetupDBLCV( axlSession "pk1126_sky77366_5_CR_mayberc" "pk1126_01_TB" "adexl")

;---------- Test "IDAC_SWEEP_MAIN" -------------
testSession = asiGetSession( 'IDAC_SWEEP_MAIN )
dc_analysis = asiGetAnalysis(testSession, 'dc)
asiSaveState(testSession ?name "IDAC_SWEEP_MAIN" ?option 'dir ?stateDir "/prj/pk1126_sky77366_5_CR/work_libs/mayberc/cds/design/pk1126_01_TB/adexl/test_states" ?description "IDAC_SWEEP_MAIN" )
htest = axlPutTest( sdb "IDAC_SWEEP_MAIN" "ADE")
axlSetTestToolArgs( htest list( list("lib" "pk1126_sky77366_5_CR_mayberc") list("cell" "pk1126_01_TB") list("view" "config") list("path" "/prj/pk1126_sky77366_5_CR/work_libs/mayberc/cds/design/pk1126_01_TB/adexl/test_states") list("state" "IDAC_SWEEP_MAIN_active") list("sim" "spectre")))

;====================== Save Setup ============================================
axlSaveSetup(axlSession)
axlCommitSetupDB( sdb )
axlCloseSetupDB( sdb )

  • Cancel
  • Curtisma
    Curtisma over 8 years ago

    I rearranged it so that the test is created in adexl session first to define 'IDAC_SWEEP_MAIN. However now I can't seem to save the ADE L session. The call to asiSaveState gives the error below.  I have tried several paths to save the ADE L State and all of them give the same error.  Any ideas about what is causing the error?  Is there a better way to point the test to the ADE L state?


    Updated Script:

    ddGetObj("pk1126_sky77366_5_CR_mayberc" "pk1126_01_TB" "adexl" "data.sdb" nil "w")
    sessionName = strcat("mysession" (sprintf nil "%d" random()))
    axlSession = axlCreateSession(sessionName)
    sdb = axlSetMainSetupDBLCV( axlSession "pk1126_sky77366_5_CR_mayberc" "pk1126_01_TB" "adexl")

    ;---------- Test "IDAC_SWEEP_MAIN" -------------

    htest = axlPutTest( sdb "IDAC_SWEEP_MAIN" "ADE")
    testSession = asiGetSession( 'IDAC_SWEEP_MAIN )
    dc_analysis = asiGetAnalysis(testSession, 'dc)
    ;asiSaveState(testSession ?name "IDAC_SWEEP_MAIN" ?option 'dir ?stateDir "/prj/pk1126_sky77366_5_CR/work_libs/mayberc/cds/design/pk1126_01_TB/adexl/test_states" ?description "IDAC_SWEEP_MAIN" )
    asiSaveState(testSession ?name "IDAC_SWEEP_MAIN" ?option 'dir ?stateDir "/prj/pk1126_sky77366_5_CR/doc/pk1126_01_TB/adexl/test_states" ?simulator "spectre" ?description "IDAC_SWEEP_MAIN" )

    axlSetTestToolArgs( htest list( list("lib" "pk1126_sky77366_5_CR_mayberc") list("cell" "pk1126_01_TB") list("view" "config") list("path" "/prj/pk1126_sky77366_5_CR/doc/pk1126_01_TB/adexl/test_states") list("state" "IDAC_SWEEP_MAIN_active") list("sim" "spectre")))

    ;====================== Save Setup ============================================
    axlSaveSetup(axlSession)
    axlCommitSetupDB( sdb )
    axlCloseSetupDB( sdb )


    Error:

    *Error* Could not create directory: /results.

    *Error* Could not create directory: /results.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    You're doing this the wrong way. You should look at this solution which gives an example of how to do this.

    It doesn't make sense to do asiGetSession() that way and then asiSaveState - what you should be doing is putting the test, and then something like this:

    testName="IDAC_SWEEP_MAIN"
    htest = axlPutTest( sdb testName "ADE")
    axlSetTestToolArgs(htest list( list("lib" libName) list("cell" cellName) list("view" "schematic") list("sim" "spectre")))
    testsess=axlGetToolSession(axlSession testName)
    testSession=asiGetSession(testsess)

    (I tend to use sevEnvironment(testsess) for the last bit, but I don't think it matters).

    Then having got that you can do whatever you need to the test session, no need to save state or anything like that.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Curtisma
    Curtisma over 8 years ago
    Thanks Andrew!

    Here is my updated code that seems to work great for setting up this test. Do you see any issues with it?

    /* ADEXL Cellview Generation Ocean Script
    Library: pk1126_sky77366_5_CR
    Cell: pk1126_01_TB
    */
    ;====================== Open Setup ============================================
    ddGetObj("pk1126_sky77366_5_CR_mayberc" "pk1126_01_TB" "adexl" "data.sdb" nil "w")
    sessionName = strcat("mysession" (sprintf nil "%d" random()))
    axlSession = axlCreateSession(sessionName)
    sdb = axlSetMainSetupDBLCV( axlSession "pk1126_sky77366_5_CR_mayberc" "pk1126_01_TB" "adexl")

    ;---------- Test "IDAC_SWEEP_MAIN" -------------
    htest = axlPutTest( sdb "IDAC_SWEEP_MAIN" "ADE")
    axlSetTestToolArgs( htest list( list("lib" "pk1126_sky77366_5_CR_mayberc") list("cell" "pk1126_01_TB") list("view" "config") list("sim" "spectre")))
    testSession = axlGetToolSession(axlSession "IDAC_SWEEP_MAIN")
    testSession = asiGetSession(testSession)
    dc_analysis = asiGetAnalysis(testSession, 'dc)
    asiEnableAnalysis(dc_analysis)
    asiSetAnalysisFieldVal(dc_analysis "saveOppoint" t)
    asiSetAnalysisFieldVal(dc_analysis "sweep" "Temperature")
    asiSetAnalysisFieldVal(dc_analysis "start" "-30")
    asiSetAnalysisFieldVal(dc_analysis "stop" "130")
    asiAddDesignVarList(testSession '(("swks_vjmax_n5p0fet" "5.5") ("swks_vjmax_pfet" "2") ("DC_DIO16" "0") ("EN_DIO7" "1") ("swks_vjmax_p5p0fet" "5.5") ("DC_DIO29" "0") ("EN_DIO33" "2") ("EN_DIO32" "2") ("DC_DIO3" "0") ("swks_vtoxmax_5p0" "6.5") ("EN_DIO30" "1") ("EN_DIO16" "1") ("EN_DIO29" "1") ("swks_reliability_warning" "1") ("DC_DIO30" "0") ("EN_DIO4" "1") ("EN_DIO5" "1") ("swks_vjmax_nfet" "2") ("DC_DIO28" "0") ("DC_DIO14" "0") ("DC_DIO7" "1.8") ("EN_DIO31" "1") ("EN_DIO15" "1") ("DC_DIO4" "1.5") ("DC_DIO5" "0.5") ("DC_DIO15" "0") ("EN_DIO28" "1") ("EN_DIO13" "2") ("DC_DIO31" "0") ("DC_DIO33" "0") ("EN_DIO3" "1") ("swks_vtoxmax_1p8" "2") ("DC_DIO32" "0") ("DC_DIO13" "0") ("EN_DIO14" "1")))
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_CLK" ?expr "VDC(\"/DIO5/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_VIO" ?expr "VDC(\"/DIO7/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_DATA" ?expr "VDC(\"/DIO4/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_MODE3" ?expr "VDC(\"/DIO13/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_VBATT" ?expr "VDC(\"/DIO14/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_CLAMP" ?expr "VDC(\"/DIO15/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_SW_BYP" ?expr "VDC(\"/DIO33/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_MODE1" ?expr "VDC(\"/DIO32/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_IREF12_LB" ?expr "VDC(\"/DIO31/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_IREF12_MB" ?expr "VDC(\"/DIO30/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_IREF3_LB" ?expr "VDC(\"/DIO29/V_DIO\")" ?plot nil ?save t)
    axlAddOutputExpr(axlSession "IDAC_SWEEP_MAIN" "VDC_IREF3_MB" ?expr "VDC(\"/DIO28/V_DIO\")" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO5/V_DIO" ?type "net" ?outputName "Vsig_CLK" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO7/V_DIO" ?type "net" ?outputName "Vsig_VIO" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO4/V_DIO" ?type "net" ?outputName "Vsig_DATA" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO13/V_DIO" ?type "net" ?outputName "Vsig_MODE3" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO14/V_DIO" ?type "net" ?outputName "Vsig_VBATT" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO15/V_DIO" ?type "net" ?outputName "Vsig_CLAMP" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO33/V_DIO" ?type "net" ?outputName "Vsig_SW_BYP" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO32/V_DIO" ?type "net" ?outputName "Vsig_MODE1" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO31/V_DIO" ?type "net" ?outputName "Vsig_IREF12_LB" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO30/V_DIO" ?type "net" ?outputName "Vsig_IREF12_MB" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO29/V_DIO" ?type "net" ?outputName "Vsig_IREF3_LB" ?plot nil ?save t)
    axlAddOutputSignal(axlSession "IDAC_SWEEP_MAIN" "/DIO28/V_DIO" ?type "net" ?outputName "Vsig_IREF3_MB" ?plot nil ?save t)
    cornerH = axlPutCorner(sdb "IDAC_SWEEP_MAIN")
    axlPutVar(cornerH "DC_DIO14" "2.5:0.5:5")
    axlPutVar(cornerH "DC_DIO28" "2")
    axlPutVar(cornerH "DC_DIO29" "2")
    axlPutVar(cornerH "DC_DIO30" "2")
    axlPutVar(cornerH "DC_DIO31" "2")
    axlPutVar(cornerH "SET_DATA_WORD" "264:273")
    axlSetCornerTestEnabled(cornerH "IDAC_SWEEP_LB" nil)
    axlSetCornerTestEnabled(cornerH "IDAC_SWEEP_MB" nil)
    axlSetCornerTestEnabled(cornerH "IDAC_TRIM" nil)
    axlSetCornerTestEnabled(cornerH "DIGITAL_POWER_MODES" nil)
    axlSetCornerTestEnabled(cornerH "DIGITAL_SW_BYP" nil)
    axlSetCornerTestEnabled(cornerH "STANDBY_LEAKAGE" nil)
    axlSetCornerTestEnabled(cornerH "OVP_EOS" nil)

    ;====================== Disables ============================================
    axlSetAllVarsDisabled(sdb 1)
    axlSetNominalCornerEnabled(sdb 0)

    ;====================== Save Setup ============================================
    axlSaveSetup(axlSession)
    axlCommitSetupDB( sdb )
    axlCloseSetupDB( sdb )
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Curtisma
    Curtisma over 8 years ago
    Andrew:

    How do I use skill to change the Save All... options. Specifically I want to set it so that it only saves selected voltage and current nodes rather than saving all voltages.

    -Curtis
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Curtis - yes, this looks reasonable!

    Ah, just seen your last question. That's easy enough:

    asiSetKeepOptionVal(testSession 'save "selected")
    asiSetKeepOptionVal(testSession 'currents "selected")

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information