• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » WEBENCH® Design Center » Simulation and Models Forum » Updating values for prototypical components
Share
WEBENCH® Design Center
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Updating values for prototypical components

Updating values for prototypical components

This question is answered
Shawn Scully
Posted by Shawn Scully
on Jul 19 2012 10:00 AM
Prodigy10 points

Hey Folks,

Basic question about TINA.

How do I build a circuit with many of the same component such that I can update a value in one place to change the values throughout the network.  For example, let's say I have 50 resistors in a circuit and I want to change the resistance of all 50, run a simulation, change the resistance of all 50 again, run another simulation, etc.

Thanks,

Shawn

TINA
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Marcos López - WEBENCH Design Center
    Posted by Marcos López - WEBENCH Design Center
    on Jul 19 2012 14:24 PM
    Verified Answer
    Verified by Nikhil Gupta - WEBENCH Design Center
    Intellectual1340 points
    Params.doc

    Shawn,

            TINA-TI doesn't allow you to have global parameters in the schematic editor. There are two ways to accomplish what you are trying to do:

    1. Use the netlist editor
         2. Transform your circuit into a macro.

    Let’s start with option one first, say we need a voltage divider from node NA to node NB as shown below,

    To obtain the netlist for this circuit, simply aks tina to export your schematic into a .CIR file. To convert your circuit into a .CIR, just follow the following steps.

    1. First, connect your circuit in the schematic editor =) ( I know, just making sure)
         2. Go to ghe “File” pull down menu and select export for TINA as shown below
    3. Save your circuit
    4. Open your circuit from the netlist editor

    You should get something similar to,

    If you got to this point, you should have a very similar file apart from the .PARAM line that I added toI define my circuit parameters .You can go ahead and use as many .PARAM statements as you need. Pay attention to the curly brackets on R2, this tells the simulator to insert the value of Rx as the value for resistor R2. Now all you need to do is go to the “analysis” tab and you will be able to run all the same analysis you can run from the GUI. You should see the same dialogs for each analysis.

    Option 2.

    The cool thing about option 1 is that the effort is somewhat small but we cannot go back and use the schematic editor (i.e. GUI) to accomplish this we have to write a wrapper for our circuit known in the circuit world as macro or subckt. Macro and subckt are are basically the same as having hierarchy in the schematic editor, e.g. a 741 amp, we just grab it and use it without looking under the hood.

    Referring to our little voltage divider, the netlist representation of this circuit will look like:

    .SUBCKT  V_DIVIDER  NA  NB

    + PARAMS: RA = 1K RB = 1K

    R1        NA  NB  { RA }

    R2        NB  0     { RB }

    .ENDS

    The  PARAMS statement tells the simulator that RA and RB are external parameters  or variables to this sub-circuit and we are defaulting them to 1K. Once the parameters are set, they will replace the variables encased in the curly brackets namely RA and RB.

    ** Note that I have used PARAMS and not PARAM, PARAMS are external variables while PARAM have local scope, i.e. they will only work inside the .subckt and .ends statement unless they are  defined in a global scope.

    The + sign before PARAMS is used and “line continues” so line one wraps into line 2.

    Now the question is, how do I transform my circuit into a netlist?

    Please see the following application note,

    http://www.ti.com/lit/an/slva527/slva527.pdf

    Feel free to post and your schematic and I’ll be glad to help you shoehorn the circuit into a box.

    One important remark, you can also pass global parameters to subckts. For example, say you created a macro for the voltage divider we discussed earlier, now when you generate your netlist by using step 1, you should see what is know as subckt calls in your .CIR file, this is

    XU1        Node1  Node 2 My_Voltage_Divider

    + Params: Rx = 1K

    then, you can define global parameters in your .CIR file as .PARAM Rglobal = 100K and pass it as parameter to your subckt's

    XU1        Node1  Node 2 My_Voltage_Divider

    + Params: Rx = { Rglobal }

    I hope this helps.

    -Marcos

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use