• 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. How to import values for a long list of design variables...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 126
  • Views 14633
  • 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

How to import values for a long list of design variables?

kevch9988
kevch9988 over 8 years ago

Hello,

I have a standard logic gate library that has all the different logic gates with ppar for passing the nmos and pmos (width, length, nf)  values to the symbol level (an inverter for example).

So when I have a simulation setup for a larger digital block (using function views), all these Design Variables (maybe 50 of them) will need to have a value (it doesn't really matter just can't be left empty) for the AMS simulator to run. 

Is there a way to import a file containing all the sizing information for the gates so I can run the simulation? 

Thanks in advance,

Kevin

  • Cancel
  • drdanmc
    drdanmc over 7 years ago
    yep. The functions you'll want to take a look at are asiSetDesignVarList() which can define your current list of design variables, asiGetDesignVarList() which tells you what your current design variables are, and asiGetCurrentSession(). Here is a short example:


    ;; get the current simulation session
    ses = asiGetCurrentSession()
    old_vars = asiGetDesignVarList( ses )
    printf( "Old design variable list:\n%L\n", old_vars )

    new_vars = list()
    ;; have a loop which reads name/value pairs and for each of those, call
    ;; new_vars = append1( new_vars list(var_name var_value))

    printf( "New design variable list:\n%L\n", new_vars )
    asiSetDesignVarList( ses, new_vars )

    If you just need a value and it doesn't matter what the value is, just iterate over old_vars above to get the names and use the existing value (if any) or put in some default value and then use the asiSetDesignVarList() to put the new list in place.

    -Dan
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago
    Note that if using the newer ADE Explorer or ADE Assembler tools, you can do this easily within the tool. Simply move your cursor over the Global Variables (the line that says Global Variables) in the data view assistant (in Assembler) or over the Design Variables (the line that says Design Variables in the Setup assistant) in Explorer, and then right click mouse button menu has “Export to CSV” and “Import from CSV” entries.

    Regards,

    Andrew.
    • 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