• 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. ADE-XL print ModelFiles of newly created test Test

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13272
  • 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

ADE-XL print ModelFiles of newly created test Test

tyanata
tyanata over 11 years ago

Hello,

 

 Hello I want to print 'ModelFiles of newly created Test in ADE-XL, the printing have to be done during the Test creation.

I have following routine:

(axlSessionRegisterCreationCallback 'test_procedure1)


(defun test_procedure1 (session_name)
    let(()
        (axlSessionConnect session_name "createdTest" 'test_procedure2)
    );let
);defun

procedure(test_procedure2(active_session active_test_name)
    let((oSession modelList testSession)

                 
                    oSession = asiGetCurrentSession()
                    println(oSession)
                   
                   
                    modelList = asiGetModelLibSelectionList( oSession )
                    printf("\tModel list print 1 = %L\n" modelList)
                   
                    modelList = asiGetEnvOptionVal( oSession 'modelFiles )
                    printf("\tModel list print 2 = %L\n" modelList)

                    testSession = axlGetToolSession(active_session active_test_name)                 
                   oSession =  sevEnvironment(testSession)


                    modelList = asiGetModelLibSelectionList( oSession )
                    printf("\tModel list print 3 = %L\n" modelList)               

    );let
);procedure

 

It is strange that the routine actually prints the 'ModelFiles of the last already existing test in the ADE-XL session.

 

Can you say what is wrong in my script?

 

Best regards,

 

tyanata

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Tyanata,

    I'm not sure what you're trying to do here, The issue is that the test is created as soon as you've picked the design for the testbench - and at that stage the "asi" session has not been created yet (which is why the last approach doesn't work). The asiGet CurrentSession is just telling you whichever session was previously current - so that's not going to tell you anything about the newly created test. 

    You might be better off using the "updatedTest" signal (and then using the axlGetToolSession/sevEnvironment approach, checking that you get non-nil for each of them before trying to get the model info.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tyanata
    tyanata over 11 years ago

     Hello Andrew,

     

    Thanks for the response, the proposed approach works.

     

    tyanata

    • 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