Home > Community > Forums > Custom IC Design > How to access ADE-XL through skill?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to access ADE-XL through skill? 

Last post Thu, Jul 11 2013 2:59 AM by adeuser777. 6 replies.
Started by adeuser777 21 Jun 2013 12:01 AM. Topic has 6 replies and 1093 views
Page 1 of 1 (7 items)
Sort Posts:
  • Fri, Jun 21 2013 12:01 AM

    How to access ADE-XL through skill? Reply
    Currently, I access ADE-XL tests through Skill using axlGetMainSetupDB( axlGetWindowSession() ). For this to work, I need to have ADE-XL session open.

    Is there a way to read the details using Ocean/Skill command without opening ADE-XL?

    These are the specific commands I use now.

    axl_session=axlGetWindowSession()

    hsdb_session=axlGetMainSetupDB( axl_session )

    tests=axlGetTests(hsdb_session)

    test_names=setof( test cadr(tests)

    axlGetEnabled( axlGetTest( hsdb_session test ))

                           );setof

    test_name=car(test_names)

    sev_session=axlGetToolSession(axl_session test_name)

    o_session = sevEnvironment( sev_session )

    Once I get o_session id, I use this to read and write in to ADE-XL tests.

    My end goal is to primarily read the contents from ADE-XL tests without opening ADE-XL. Can it be done?

    Thanks,

    Ram
    • Post Points: 20
  • Fri, Jun 21 2013 12:46 AM

    Re: How to access ADE-XL through skill? Reply

    Ram,

    axl_session=axlCreateSession(getCurrentTime()) ; getCurrentTime gives you a unique session id
    hsdb=axlSetMainSetupDBLCV(axl_session "libName" "cellName" "adexl")

    and then carry on as before.

    Regards,

    Andrew.

    • Post Points: 20
  • Fri, Jun 21 2013 1:59 AM

    Re: How to access ADE-XL through skill? Reply

    Hi Andrew,

    You saved my day. Thanks a lot.

     

    Ram

     

    • Post Points: 5
  • Tue, Jul 9 2013 12:08 PM

    Re: How to access ADE-XL through skill? Reply

     Hi Andrew,

    I have a problem.

     

    axlSetMainSetupDBLCV seem to work only if I write permission to adexl view. If I do not have write access, it dumps the below error.

     

       hsdb_session=axlSetMainSetupDBLCV(axl_session "testlib" "inv" "adexl")
    ERROR (ADEXL-1625): Could not create the state directory /tmp/locallib/testlib/inv/adexl/states". Check permissions and try again.
    *Error* error: Could not create the state directory "/tmp/locallib/testlib/inv/adexl/states". Check permissions and try again. - nil
    <<< Stack Trace >>>
    (... in axlSetMainSetupDB ...)
    (... in axlSetMainSetupDBLCV ...)
     filename = "data.sdb"
     filepath = "/tmp/locallib/testlib/inv/adexl/data.sdb"
     sdb = nil
     session = "Jul  9 12:02:39 2013"
     lib = "testlib"
     cell = "inv"
     view = "adexl"
     mode = "a"
    axlSetMainSetupDBLCV(axl_session "testlib" "inv" "adexl")
    (hsdb_session = axlSetMainSetupDBLCV(axl_session "testlib" "inv" "adexl"))

     

     

    I don't see an option to specify "r" only in axlSetMainSetupDBLCV.

     

    Thanks,

    Ram

    • Post Points: 20
  • Tue, Jul 9 2013 12:33 PM

    Re: How to access ADE-XL through skill? Reply

    Ram,

    Try:

    hsdb_session = axlSetMainSetupDBLCV(axl_session "testlib" "inv" "adexl" ?mode "r")

    If that works, I'll file a CCR to get this additional (currently undocumented) argument documented. Sorry I don't have time to try it myself right now.

    Regards,

    Andrew.

     


    • Post Points: 20
  • Tue, Jul 9 2013 10:47 PM

    Re: How to access ADE-XL through skill? Reply

     Yes, it worked. Thanks Andrew.

    • Post Points: 5
  • Thu, Jul 11 2013 2:59 AM

    Re: How to access ADE-XL through skill? Reply
    Hi Andrew, I have another question wrt this flow.

    I was trying to execute my skill script using "virtuoso -nograph -replay <path to .il>" command.

    My skill file uses axlSetMainSetupDBLCV command to get the adexl handle and then also fires simulation with axlRunAllTestsWithCallback command.

    Problem is, axlRunAllTestsWithCallback executes a child virtuoso process and returns control back to main process. Once the control is back to main virtuoso, it exits which also kills the child process (simulation) as well.

    Is there any way we can block the main session till simulation is complete? I am not sure if I can use ipcBeginProcess as the child session is launched internally through axlRunAllTestsWithCallback.

    Is there a way to workaround this? I can replace axlRunAllTestsWithCallback with set of oceanXL commands, but I was hoping to reuse the setup without much modification.

    Thank you,

    Ram
    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by adeuser777 at 21 Jun 2013 12:01 AM. Topic has 6 replies.