• 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. Load ADE state from skill

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 14162
  • 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

Load ADE state from skill

jtompson
jtompson over 16 years ago
I am writing a cadence addon tool (for internal use) that runs corner simulations in ADE and plots to an excel format -> I intend this tool to be much like Parametric Analysis... tool with the addition of being able to load states (containing model information). sevLoadState() will bring up a dialog window, so is not applicable here. The internal functions sevLoadStateFromName() and sevLoadStateFromField() return nil without any error messages. I believe the required inputs are: sevLoadStateFromName(session allComponentDefs lib cell simulator name loadComponentFunct). Is this correct? If I change the value to a cell which does not exist I get an error message saying the cell does not exist, so I believe my formatting is correct... Can anyone help with this issue? Is there an easier way to load ADE state information? Thanks in advance.
  • Cancel
  • Bernd
    Bernd over 16 years ago

    What about

    asiLoadState(
       
    o_session
        [?name t_name]
        [?option t_option]
        [?stateDir t_stateDir]
        [?lib t_lib]
        [?cell t_cell]
        [?simulator t_simulator]

        )
         => t | nil

    Loads a saved state into the current simulation environment directly from the CIW without displaying the Loading State form.


    Available form IC 6.1.1.

    Bernd
     
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jtompson
    jtompson over 16 years ago
    Thank you so much, this is exactly what I was looking for. However, because of unsupported TSMC dkits we haven't moved up to IC 6 yet. A "which icfb" gives ic5.141_500_5_128... Is there anything in the old release that might help?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jtompson
    jtompson over 16 years ago
    Here's what I did instead:
    -----------------------------------------------------------------------
    curDes = asiGetDesignCellName(session)
    curLib = asiGetDesignLibName(session)
    desiredState = symbolToString('mystate)
    curStateID = ddGetObj(curLib curDes desiredState)
    curStatePath = ddGetObjReadPath(curStateID)
    curStatePath = strcat(curStatePath "/modelSetup.state")
    curModels = pvtGetModelInfo(curStatePath)
    asiSetEnvOptionVal(session "modelFiles" curModels)
    Then:
    /***************************************************************
    *                        pvtGetModelInfo()                     *
    *                           Debug Function                     *
    ***************************************************************/
    procedure(pvtGetModelInfo(file)
       prog((filep rdLine string modelFiles)
          when(!isFile(file)
             error("unable to open %s" file)
          ) ; when
          ;get input file port
          filep=infile(file)
          ;error out if can't open file port
          when(!filep
             error("unable to open %s" file)
          ) ; when
          string="modelFiles = '"
          while(gets(rdLine filep)
             string=strcat(string rdLine)
          ) ; while
          loadstring(string)
          return(modelFiles)
       );end prog
    );end procedure
    -----------------------------------------------------------------------
    So I never actually load the state but instead replace the current
    session's model info with what I found in the saved file.  It's a
    little crappy but as long as you check for the file beforehand it
    works ok...

    Looking forward to V6 cadence and when vendors get compatible model
    libraries!

    Cheers mate,
    Jonathan
    • 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