Home > Community > Forums > Custom IC SKILL > Load ADE state from 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: *

 Load ADE state from skill 

Last post Mon, Dec 29 2008 8:24 AM by jtompson. 3 replies.
Started by jtompson 18 Dec 2008 03:37 PM. Topic has 3 replies and 1745 views
Page 1 of 1 (4 items)
Sort Posts:
  • Thu, Dec 18 2008 3:37 PM

    • jtompson
    • Not Ranked
    • Joined on Thu, Dec 18 2008
    • Posts 5
    • Points 40
    Load ADE state from skill Reply
    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.
    • Post Points: 20
  • Fri, Dec 19 2008 1:51 AM

    • Bernd
    • Top 500 Contributor
    • Joined on Tue, Jul 15 2008
    • Unterhaching, Bavaria
    • Posts 26
    • Points 945
    Re: Load ADE state from skill Reply

    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
     
    Just another lonesome cad guy
    • Post Points: 20
  • Fri, Dec 19 2008 8:50 AM

    • jtompson
    • Not Ranked
    • Joined on Thu, Dec 18 2008
    • Posts 5
    • Points 40
    Re: Load ADE state from skill Reply
    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?
    • Post Points: 5
  • Mon, Dec 29 2008 8:24 AM

    • jtompson
    • Not Ranked
    • Joined on Thu, Dec 18 2008
    • Posts 5
    • Points 40
    Re: Load ADE state from skill Reply
    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
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by jtompson at 18 Dec 2008 03:37 PM. Topic has 3 replies.