skill to access ADEXL options

Discussion in 'Cadence' started by Rick Mattern, Jul 28, 2011.

  1. Rick Mattern

    Rick Mattern Guest

    Im trying to create a skill script that will look at the ADEXL HPO
    options to calculate the required tokens. Ive been able to read the
    options on the HPO panel but need some help with the rest. Heres the
    beginning of the code:

    ;; defining the PreRun function
    (define (PreRun session_name sdb_highandle mode_string test_name)
    (printf "Launching a new run %L %L %L %L\n" session_name
    sdb_highandle mode_string test_name)

    tests=axlGetTests(sdb_highandle)

    jobPolicyName=axlGetAttachedJobPolicy()->name
    distmethod=axlGetAttachedJobPolicy()->distributionmethod

    ;; traversing all the tests and changing the mt option as per
    the requirement

    foreach( test_name cadr(tests)
    if( axlGetEnabled(axlGetTest(sdb_highandle test_name)) then
    printf("test %s is enabled\n" test_name)
    testSession=axlGetToolSession(session_name test_name)

    println( "check MT options")


    mt_opt=testSession~>simID~>data~>env~>data~>turboOpts~>data~>mtOption~>value
    if(eq(strcmp(mt_opt "Manual") 0) printf(" Manual MT will
    be disabled!!! \n"))
    if(eq(strcmp(mt_opt "Disable") 0) printf("Disabled MT
    \n"))
    if(eq(strcmp(mt_opt "Auto") 0) printf(" Auto MT will be
    disabled!!! \n"))
    if(eq(strcmp(distmethod "Local") 0) then printf(" Turning
    off the MT options for this test \n")

    testSession~>simID~>data~>env~>data~>turboOpts~>data~>mtOption~>value="Disable" )

    println( "check tool options")


    tool_opt=testSession~>simID~>data~>env~>data~>turboOpts~>data~>uniMode~>value
    if(eq(strcmp(tool_opt "Spectre") 0) printf(" This is a Spectre
    run \n"))
    if(eq(strcmp(tool_opt "Turbo") 0) printf(" This is a Turbo
    run \n"))
    if(eq(strcmp(tool_opt "APS") 0) printf(" This is an APS run
    \n"))

    println( "check parasitic reduction option")


    paraRed_opt=testSession~>simID~>data~>env~>data~>turboOpts~>data~>psrSwitch~>value
    if(eq(strcmp(paraRed_opt t ) 0) printf(" parasitic reduction
    enabled \n"))
    if(eq(strcmp(paraRed_opt nil ) 0) printf(" parasitic reduction
    disabled \n")
    The first issue is that paraRed_opt is either a nil or t so strcmp
    wont work, is a simular command for t/nil ?
    Once I have the options gathered, I can use a series of if/thens but
    is there a more elegant way to handle this like with a truth table or
    increment command?
    Thanks
     
    Rick Mattern, Jul 28, 2011
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.