• 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 Design
  3. Adexl - auto locking Interactive when run finishes

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 125
  • Views 3280
  • 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 - auto locking Interactive when run finishes

firebolt
firebolt over 3 years ago

Is there a way to auto-lock the Interactive history when the Adexl job is completed?

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    I suspect it could be done by writing a trigger to lock when simulation has completed (using axlSetHistoryLock, probably in the runFinishedConclusion or runFinishedPostPlot trigger (see axlSessionSignalList() and axlSessionConnect()), but I've not tried. It would be a bit of a pain this way to turn on and off (although could use a global flag to do it, I guess). I didn't try writing such a function though - doesn't sound too hard though.

    Alternatively you could just increase the "Save N entries" on the Options->Save form in Assembler to stop the histories being deleted automatically.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to Andrew Beckett

    This code should do it (I thought I'd check that the idea I suggested above worked):

    /* abAutoLockHistory.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Sep 04, 2022 
    Modified   
    By         
    
    Allow histories to be automatically locked when simulations are
    complete. The code example below uses a combination of the
    showNameHistoryForm and initiallyAddHistoryNameUniquifier to turn this
    behaviour on or off, but the condition could be changed as you wish.
    
    To enable: abEnableAutoLockHistory()
    
    ***************************************************
    
    SCCS Info: @(#) abAutoLockHistory.il 09/04/22.06:52:13 1.1
    
    */
    
    /*******************************************************************
    *                                                                  *
    *               abAutoLockHistory(_sess _runId hsdb)               *
    *                                                                  *
    *   Trigger to automatically lock the history. Only does so when   *
    * the history name form is shown and adding the suffix is disabled *
    *          (you can change the condition as you see fit)           *
    *                                                                  *
    *******************************************************************/
    
    procedure(abAutoLockHistory(_sess _runId hsdb)
        when(envGetVal("adexl.historyNamePrefix" "showNameHistoryForm") &&
                !envGetVal("adexl.historyNamePrefix" 
                    "initiallyAddHistoryNameUniquifier")
            axlSetHistoryLock(hsdb t)
        )
    )
    
    /***************************************************************
    *                                                              *
    *            abEnableAutoLockHistoryTriggers(sess)             *
    *                                                              *
    *  Add the trigger when the ADE XL/Maestro session is started  *
    *                                                              *
    ***************************************************************/
    
    procedure(abEnableAutoLockHistoryTriggers(sess)
        axlSessionConnect(sess "runFinishedConclusion" 'abAutoLockHistory)
    )
    
    /***************************************************************
    *                                                              *
    *                  abEnableAutoLockHistory()                   *
    *                                                              *
    *     Enable auto-locking of histories when run finished.      *
    *                                                              *
    ***************************************************************/
    
    procedure(abEnableAutoLockHistory()
        axlSessionRegisterCreationCallback('abEnableAutoLockHistoryTriggers)
    )
    
    

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to Andrew Beckett

    This code should do it (I thought I'd check that the idea I suggested above worked):

    /* abAutoLockHistory.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Sep 04, 2022 
    Modified   
    By         
    
    Allow histories to be automatically locked when simulations are
    complete. The code example below uses a combination of the
    showNameHistoryForm and initiallyAddHistoryNameUniquifier to turn this
    behaviour on or off, but the condition could be changed as you wish.
    
    To enable: abEnableAutoLockHistory()
    
    ***************************************************
    
    SCCS Info: @(#) abAutoLockHistory.il 09/04/22.06:52:13 1.1
    
    */
    
    /*******************************************************************
    *                                                                  *
    *               abAutoLockHistory(_sess _runId hsdb)               *
    *                                                                  *
    *   Trigger to automatically lock the history. Only does so when   *
    * the history name form is shown and adding the suffix is disabled *
    *          (you can change the condition as you see fit)           *
    *                                                                  *
    *******************************************************************/
    
    procedure(abAutoLockHistory(_sess _runId hsdb)
        when(envGetVal("adexl.historyNamePrefix" "showNameHistoryForm") &&
                !envGetVal("adexl.historyNamePrefix" 
                    "initiallyAddHistoryNameUniquifier")
            axlSetHistoryLock(hsdb t)
        )
    )
    
    /***************************************************************
    *                                                              *
    *            abEnableAutoLockHistoryTriggers(sess)             *
    *                                                              *
    *  Add the trigger when the ADE XL/Maestro session is started  *
    *                                                              *
    ***************************************************************/
    
    procedure(abEnableAutoLockHistoryTriggers(sess)
        axlSessionConnect(sess "runFinishedConclusion" 'abAutoLockHistory)
    )
    
    /***************************************************************
    *                                                              *
    *                  abEnableAutoLockHistory()                   *
    *                                                              *
    *     Enable auto-locking of histories when run finished.      *
    *                                                              *
    ***************************************************************/
    
    procedure(abEnableAutoLockHistory()
        axlSessionRegisterCreationCallback('abEnableAutoLockHistoryTriggers)
    )
    
    

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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