• 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. Plotting results in multiple graphs

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 126
  • Views 20616
  • 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

Plotting results in multiple graphs

Grover
Grover over 15 years ago

Is it possible in ADE XL to automatically plot different results in different subwindows? It is of course possible to plot several signals one by one while using the "New SubWin" plot mode, but is it also possible to do this automatically after each simulation?

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

    Actually in IC614, you can specify units in the outputs pane in ADE XL for any scalar result. However, it seems that the units affect the numbers displayed on the results tab, but not the curves themselves - I will file a CCR to get that fixed.

    I think I've discovered how the curves get generated for the scalar outputs when you've done (say) a sweep of a parameter in ADE XL, and as a results of that discovery, I've put together a custom calculator function to set the units.

    Ensure this code is loaded from your .cdsinit - you can then surround the expression with this abSetUnits() function - by picking it in the User Defined SKILL Functions in the calculator, or just by adding abSetUnits(riseTime(...) "s") for example. See the comments at the top for how to register the calculator function.

    Here's the code:

    /* abSetUnits.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Oct 08, 2009 
    Modified   
    By         
    
    abSetUnits(waveform "s")
    
    sets the units on a waveform to be seconds.
    
    abRegSetUnitsSpecialFunction()
    
    registers a function in the calculator to alter the units on a 
    waveform.
    
    ***************************************************
    
    SCCS Info: @(#) abSetUnits.il 10/08/09.15:05:50 1.1
    
    */
    
    /****************************************************************
    *                                                               *
    *                    (abSetUnits wave units)                    *
    *                                                               *
    * Sets the units on a waveform, or all the members of a family. *
    * If it is just a value, pass straight through (can't set units *
    *                         on a number).                         *
    *                                                               *
    ****************************************************************/
    
    (defun abSetUnits (wave units)
      (cond 
        ((drIsWaveform wave)
         (putpropq (drGetWaveformYVec wave) units units)
         )
        ((famIsFamily wave)
         (famMap 'abSetUnits wave units)
         )
        )
      wave
      )
    
    /***************************************************************
    *                                                              *
    *                    (abCreateSetUnitsForm)                    *
    *                                                              *
    *  Set up a form for the special function on the calculator,   *
    *  which gives choices for the units. It needs to be cyclic,   *
    *   because if it's a type in field, quotes don't get added    *
    *                      around the units.                       *
    *                                                              *
    ***************************************************************/
    
    (defun abCreateSetUnitsForm ()
      (let (units)
        (setq units (ahiCreateCyclicField
    		  ?name 'units
    		  ?prompt "Units"
    		  ?choices '("V" "A" "s" "W" "dB" "Wb" "C" "Hz")
    		  ?value "V"
    		  ))
        (calCreateSpecialFunctionsForm
          'abSetUnitsForm
          (list 
    	(list units 0:0  180:20 140)
    	)
          )
        ))
    
    /*****************************************************************
    *                                                                *
    *                 (abSetUnitsSpecialFunctionCB)                  *
    *                                                                *
    * Callback for the abSetUnits special function, which constructs *
    *           the buffer input from the form and stack.            *
    *                                                                *
    *****************************************************************/
    
    (defun abSetUnitsSpecialFunctionCB ()
      (calCreateSpecialFunction
       ?formSym 'abSetUnitsForm
       ?formInitProc 'abCreateSetUnitsForm
       ?formTitle "Set Units"
       ?formCallback 
       "(calSpecialFunctionInput 'abSetUnits '(units))"
       ))
    
    
    /***************************************************************
    *                                                              *
    *                (abRegSetUnitsSpecialFunction)                *
    *                                                              *
    *                Register the special function                 *
    *                                                              *
    ***************************************************************/
    
    (defun abRegSetUnitsSpecialFunction ()
      (calRegisterSpecialFunction
       (list "abSetUnits..." 'abSetUnitsSpecialFunctionCB))
      t
      )
    

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Actually in IC614, you can specify units in the outputs pane in ADE XL for any scalar result. However, it seems that the units affect the numbers displayed on the results tab, but not the curves themselves - I will file a CCR to get that fixed.

    I think I've discovered how the curves get generated for the scalar outputs when you've done (say) a sweep of a parameter in ADE XL, and as a results of that discovery, I've put together a custom calculator function to set the units.

    Ensure this code is loaded from your .cdsinit - you can then surround the expression with this abSetUnits() function - by picking it in the User Defined SKILL Functions in the calculator, or just by adding abSetUnits(riseTime(...) "s") for example. See the comments at the top for how to register the calculator function.

    Here's the code:

    /* abSetUnits.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Oct 08, 2009 
    Modified   
    By         
    
    abSetUnits(waveform "s")
    
    sets the units on a waveform to be seconds.
    
    abRegSetUnitsSpecialFunction()
    
    registers a function in the calculator to alter the units on a 
    waveform.
    
    ***************************************************
    
    SCCS Info: @(#) abSetUnits.il 10/08/09.15:05:50 1.1
    
    */
    
    /****************************************************************
    *                                                               *
    *                    (abSetUnits wave units)                    *
    *                                                               *
    * Sets the units on a waveform, or all the members of a family. *
    * If it is just a value, pass straight through (can't set units *
    *                         on a number).                         *
    *                                                               *
    ****************************************************************/
    
    (defun abSetUnits (wave units)
      (cond 
        ((drIsWaveform wave)
         (putpropq (drGetWaveformYVec wave) units units)
         )
        ((famIsFamily wave)
         (famMap 'abSetUnits wave units)
         )
        )
      wave
      )
    
    /***************************************************************
    *                                                              *
    *                    (abCreateSetUnitsForm)                    *
    *                                                              *
    *  Set up a form for the special function on the calculator,   *
    *  which gives choices for the units. It needs to be cyclic,   *
    *   because if it's a type in field, quotes don't get added    *
    *                      around the units.                       *
    *                                                              *
    ***************************************************************/
    
    (defun abCreateSetUnitsForm ()
      (let (units)
        (setq units (ahiCreateCyclicField
    		  ?name 'units
    		  ?prompt "Units"
    		  ?choices '("V" "A" "s" "W" "dB" "Wb" "C" "Hz")
    		  ?value "V"
    		  ))
        (calCreateSpecialFunctionsForm
          'abSetUnitsForm
          (list 
    	(list units 0:0  180:20 140)
    	)
          )
        ))
    
    /*****************************************************************
    *                                                                *
    *                 (abSetUnitsSpecialFunctionCB)                  *
    *                                                                *
    * Callback for the abSetUnits special function, which constructs *
    *           the buffer input from the form and stack.            *
    *                                                                *
    *****************************************************************/
    
    (defun abSetUnitsSpecialFunctionCB ()
      (calCreateSpecialFunction
       ?formSym 'abSetUnitsForm
       ?formInitProc 'abCreateSetUnitsForm
       ?formTitle "Set Units"
       ?formCallback 
       "(calSpecialFunctionInput 'abSetUnits '(units))"
       ))
    
    
    /***************************************************************
    *                                                              *
    *                (abRegSetUnitsSpecialFunction)                *
    *                                                              *
    *                Register the special function                 *
    *                                                              *
    ***************************************************************/
    
    (defun abRegSetUnitsSpecialFunction ()
      (calRegisterSpecialFunction
       (list "abSetUnits..." 'abSetUnitsSpecialFunctionCB))
      t
      )
    

    Regards,

    Andrew.

    • 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