Home
Linking a Simulation Model to a Schematic Component
Contents
1. Library Link Database Component Library MyExample DbLib Table Switching Diodes Physical Component DIODE JAS33 Logical Symbol DIODE JAS33 Sub Project None oO O O Configuration None Models for D DIODE JAS33 5 Description Type JA amp S33 wi SOT 23 Footprint Graphical Location Orientatio Mode Bibsseceanomusnsan Model Kind General v Spice Prefix E Model Sub Kind mPa JA amp S33 Capaci Model Name Capacitor Semiconductor jisi eave het led Inductors Pran Model Location ea Oany Model Kind Parameters Port Map a kwasi es mea OlnFie Component parameter Spice Subcircuit Area Factor 2 F Full Path Choose Starting Condition v Fi In Database Library MyE le DbLib i In Database Library MyE xample DbLi Initial Voltage o 22 Found In C DBLibs Switching Diodes Libraries WAS33 mdl LOE O Model Kind Parameters Port Map Acquired from Manufacturer XYZ on 29 03 06 at 15 25 1A 1 MODEL JAS33 D IS 6 0289E 9 N 2 1238 RS 1E 3 IKF 37 422E 3 CJO 593E 15 M 0 1 VJ 0 68774 ISR 2 064E 9 NR 4 99 BY 113 4 IBV 10 TT 4 5E 9 D Netlist Template Hodel File DIODE JAS33 Exclude part trom simulation Part 1 1
2. Figure 19 Sim Model dialog entries for the JAS33 diode example AP0142 v1 0 April 06 2006 17 Linking a Simulation Model to a Schematic Component Maintaining the Link After placement the chosen key parameter in the DBLib file is used to ensure that the placed component on the schematic retains its link to the corresponding record for that component in the external database This means that at any stage in the future changes to parameter and model information in the database can be easily passed back to the placed component synchronizing the two Although simulation parameters can be added as component parameters they are not Whereas component design parameters can be updated using either the Update Parameters From Database or Update From Libraries a recognized as design commands both available from the Schematic Editor s main Tools parameters for the purpose of menu update of simulation link information must be carried out using updating the latter The update process considers the information for the link only i e the fields stored in the external database When the model link involves an associated model file md1 ckt any changes e g MODEL Or SUBCKT definitions parameter values expressions etc required must be made within the file These changes will be seen by a placed component directly and can be checked from the Model File tab of the Sim Model dialog Revision History Date Versi
3. Linking a Simulation Model to a Schematic Component Summary This application note provides information on getting a simulation model obtained outside of Altium Designer into a format supported by the software and then linking that model to a schematic component Linking from an external database is also covered Application Note AP0142 v1 0 April 06 2006 Altium Designer provides a powerful mixed signal circuit simulator enabling you to thoroughly analyze a circuit not only observing its behavior but also ensuring that it operates within specific design constraints To simulate a design successfully all components in the circuit must be simulation ready that is they must each have a linked simulation model defined for them Altium Designer comes with a host of components stored within manufacturer specific integrated libraries Many of these components have linked simulation models making creation of a simulation ready circuit quick and efficient a case of Place n Simulate if you will With such a vast pool of components available to designers in the real world there will often be times where the component s required for use in a circuit will need to be created in libraries added by the user As well as defining the component s symbol a simulation model for that component needs to be acquired and then linked in order to make that component simulation ready Acquiring the Model A simulation model can be
4. 6 7 8 MODEL A 14 1 7 2 4 3 3 5 2 4 1 6 8 8 6 7 Sim Model General Generic Editor Panny Model Kind Parameters Port Map Model Kind General Model Sub Kind Capacitor Capacitor S emiconductor Coupled Inductors Diode Inductor Potentiometer Resistor O Any Resistor S emiconductor Resistor ariable O In File Spice Subcircuit OFullPath odel Location In Database Library MyExample DbLib Found In C DBLibs Switching Diodes Libraries 74LS 74 mdl DESIGNATOR 1 2 3 4 5 6 1 3 4 5 6 7 8 MODEL Netlist Template Netlist Preview ModelFile Figure 16 Example netlist specification for a linked digital device model 74LS74 14 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component Sim Spice Prefix Create this field in the database to specify the SPICE prefix for the model type you are linking to This information corresponds to the Spice Prefix field on the Model Kind tab of the Sim Model dialog For our example diode we would enter D For information on the Spice prefix required for a particular model type refer to the relevant section for that model type in the Simulation Models and Analyses Reference Sim Port Map Create this field in the database to specify the mapping of pins from the schematic component to the pins of the linked model After the component is placed this information will
5. Kind to Generic Editor CTS Color Burst alias XCRYSTAL FREQ 3 58E6 RS 160 C 1 8E 11 pkg HC49 i P SUBCKT 3 5795MHZ 1 2 PARAMS FREQ 3 58E6 RS 160 C 1 8E 11 Q 1000 EA For more information on this type of LX 1 3 Q RS 6 2831852 FREQ IC 0 5M o CX 3 4 1 Q 6 2831852 FREQ RS model refer to the Sub circuit based Lao RS 4 2 R5 ENDS _Netlist Template 4 Netlist Preview Model File _ models section of the Simulation Models and Analyses Reference Figure 8 Example of a linked SPICE subcircuit model AP0142 v1 0 April 06 2006 7 Linking a Simulation Model to a Schematic Component Linking to a PSpice Model Altium Designer offers strong support for PSpice models The following is a list of the PSpice device models supported e Capacitor e Resistor e Diode e Inductor e Current Controlled Switch e Voltage Controlled Switch e Voltage Controlled Voltage Source e Voltage Controlled Current Source e Current Controlled Voltage Source e Current Controlled Current Source e Bipolar Junction Transistor BUT e Junction Field Effect Transistor JFET e Metal Oxide Semiconductor Field Effect Transistor MOSFET With the exception of Resistor Inductor and the voltage and current sources simply select the Model Kind and Sub Kind as per the list for SPICES3f5 Ll 100mH Model Kind General Model Sub Kind Capacitor Capacitor S emiconductor Coupled Inductors Spi
6. only searches for a matching model in the specified file locations the order of the search is Project mdl ckt along all valid model locations Models Installed Models Project Search Paths The search ceases as soon as a match e Full Path only searches for a matching model in the specified is found i e the Model Name entry in the file md1 ckt along the specified path MODEL line of a md1 file or the SUBCKT line of a ckt file matches the Model Name entry in the Sim Model dialog for that component Typically the model file is named the same as e In Integrated Library draws the model directly from the integrated library used to place the component instance The integrated library must be available in a valid location the model itself e g the MODEL line contains Valid model locations consist of 74LS74 and the md1 file has been saved with the name 74LS74 mdl e Project Models md1 or ckt files added to the project i This is not a constraint however For example e Installed Models md1 or ckt files added to the Installed the MODEL line could contain the model name Libraries list 74LS74 and then the md1 file saved with the name DFlipFlop mdl This file would be e Project Search Paths md1 or ckt files made available to a yielded as a match provided that the Model project by defining one or more search paths in the Options for Name entry in the Sim Model dialog is 74L9
7. SPICE3f5 supported For many model types it is possible to set one or more parameters at PSpice and subcircuit model kinds the the component level This is carried out on the Parameters tab of the available parameters will automatically be Sim Model dialog listed When linking models using the are I Generic Editor you will need to add For some of the built in SPICE3f5 models entering a value for a applicable parameters manually parameter at the component level will override a related parameter defined in a linked model file ma1 For a semiconductor capacitor for example specifying a value for the component level width parameter will override any value specified for the DEFW parameter in the associated model file If a parameter is specified at the component level for a subcircuit model that value will override the value defined for it in the linked subciruit file ckt Many component level I l parameters will have a If a parameter is specified at the component level for a digital device that value will default value assigned to override the value specified for that parameter in the source SimCode definition them which although not Figure 13 shows the parameters available for our JAS33 diode device model If you displayed will be used if require any parameter values to be displayed on the schematic sheet simply enable SPecilic value is set the corresponding Component Parameter option AP0142 v1
8. aa Note Input offset added to input multiplies by the String v esistor i Resistor S emiconductor Comment GAIN String v Resistor arable i In_Offset String Spice Subcircuit a Gain Sting Out_Offset String DESIGNATOR 1 2 DESIGNATOR GAIN MODEL DESIGNATOR GAIN gain in_offset in_offset in_Offset gain gain gain out_offset out_offset out_offset Netlist Template 4 Netlist Preview ModelFile_ Figure 7 Parameter declarations for an XSpice model Linking to a Subcircuit Model If the model you wish to link has been Sim Model General Spice Subcircuit described using the hierarchical sub circuit fe wee ee syntax for an operational amplifier or General Spice Prefix crystal oscillator for example the model Hode eKA ModelName 35795MHZ definition will have been saved to file with ape EN H A Desctptin _ SUBCKT a ckt extension Gena Edo ee Ensure that the Model Kind field is set to pco O Ary General and that the Model Sub Kind is Reso arabi a O InFie setto Spice Subcircuit The required E O Ful Path Spice Prefix field will be set automatically to X Figure 8 shows an example Found In C Program FilesAltium Designer 6 Exam 43 5795MH2Z ckt simulation link to a crystal subcircuit For greater control over the netlist A Gee ee Fundamental frequency Series resistance template you Can set the Model Sub Parallel capacitance Quality Factor
9. in a model file A parameter must be entered in the following format ParameterName Value To check on supported component level parameters and syntax for the model type you wish to use refer to the relevant section of the Simulation Models and Analyses Reference Multiple parameters must be separated by the pipe character AP0142 v1 0 April 06 2006 15 Linking a Simulation Model to a Schematic Component You may remember that a component level simulation parameter can also be set as a component parameter appearing in the Parameters region of the associated Component Properties dialog with the ability to then be displayed on the schematic sheet By default a parameter entry in the Sim Parameters field will be automatically added as a component parameter If you do not want a simulation parameter to be added as a component parameter simply add an exclamation mark prefix to the parameter name e g Initial Voltage 100mvV Consider our diode model which has the following four component level parameters e Area Factor e Starting Condition art Map Sim Parameters K2 lArea Factor2 Temperature 22 e Initial Voltage e Temperature Component parameter Now consider adding values in the database for the Area Factor say 2 and Temperature say 22 C Area Factor F Also both of these should not be added as Starting Condition E component parameters The entry in the Sim Initial Voltage d d Parameters field wo
10. model types discussed elsewhere in this document simply set the Model Kind to General and the Model Sub Kind to Generic Editor For more information on using the Netlist Template including syntax rules refer to the section The Netlist Template Explained which can be found in the Simulation Models and Analyses Reference Linking to an XSpice Code Model When linking an XSpice code model to the component use of a model file is not applicable The model itself is defined using the Netlist Template tab of the Sim Model dialog with the parameters specified in the template declared and defined on the Parameters tab of the dialog Ensure that the Model Kind is set to General and that the Model Sub Kind is set to Generic Editor The Spice Prefix for this tyoe of model must be set to A 6 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component Sim Model General Generic Editor Model Kind Parameters Port Map Hid ipesia annaa Model Kind Model Kind Parameters Port Map General V Spice Prefix ry Model Parameters Model Sub Kind Name Value Type Component Parameter a ModelName GAN Published T1Ju 2000 String ana PREE ES GAIN LatestRevisionD ate 17 Jul 2002 String v ei Inductors Sam lt Pat LatestRevisionNote Re teleased for DXP Platform String v iode 7 Frey seen ioe agen eference Mot Applicable String Inductor Publisher Altium Limited String v Bese
11. obtained from many and varied sources The following is a non exhaustive list of possible places or methods to get the model you require for a target device you wish to use in your design e Manufacturer a popular place to look for a model is on the website for the manufacturer that makes the device you want to use Typically there will be a link to any available model from the page dealing with the specific device Models are commonly supplied in SPICE or PSpice format e Altium Designer s SPICE Model Wizard use this wizard to create and automatically link a SPICE3f5 device model to an existing or new library component If linking to a new component that component will be created automatically by the wizard The following device model types are supported Semiconductor Capacitor Semiconductor Resistor Current Controlled Switch Voltage Controlled Switch JFET Lossy Transmission Line Uniform Distributed RC Transmission Line Diode and BuT e Third Party Modeling Tools various simulation software packages contain features for modeling a device This typically takes the form of a model wizard e Dedicated Modeling Companies you may be able to source the required model from a third party company which creates simulation models based on a given specification AP0142 v1 0 April 06 2006 1 Linking a Simulation Model to a Schematic Component e By Hand the required model can be created yourself from scratch This will typic
12. of the Sim Model dialog In the database record for our example diode we could enter DIODE Sim File Create this field in the database if you wish to specify a particular model file in which to find the simulation model specified in the Sim Model Name field There are a number of ways in which this field can be used Sim File field is analogous to the e You can enter an absolute path to a model file e g Footprint Path Library Path etc C DBLibs Switching Diodes Libraries JAS33 md1 The fields model specified in the Sim Model Name field will be searched for within this file and used if lodel Name found i Libraries JASS mdl General D When mapping database fields to design parameters in the DBLib file the e You can enter a relative path relative to the DBLib file to a model file e g Model Location An Libraries JAS33 md1 The model specified i in the Sim Model Name field will be searched a for within this file and used if found OFulP h o In Database Library MyExample DbLib e You can enter the model filename only e g JAS33 md1 Search paths defined as part of the DBLib file will be used to locate the first model file that matches the specified name and which contains a match for the model specified in the Sim Model Name field Search paths are defined for the DBLib e You can leave the field blank Search paths defined as part of the file from the Symbol amp Model Search DBLib file wil
13. the SimCode description from within its MODEL line In the Sim Model dialog ensure that the Model Kind is set to General the Model Sub Kind is set to Generic Editor and the Spice Prefix is set to A You will need to enter the netlist template specific to the digital device being modeled on the Netlist Template tab of the dialog AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component Sim Model General Generic Editor Model Kind Parameters Port Map Model Kind l General Spice Prefix A Model Sub Kind Capacitor Capacitor S emiconductor Coupled Inductors Diode Generic Editor Inductor Potentiometer Resistor Any Resistor Semiconductor z Resistor ariable O In File Spice Subcircuit ModelName 74LS112 Description SIM CODE Model Location Full Path Found In C Program Files Altium Designer 6 Examples Circuit Simulation Mixed mode Binary Ripple 555574L5112 mdl LS Dual JK FLIP FLOP type digital pkg DIP16 DV CC 16 DGND 8 A 4 3 1 2 15 6 5 B 10 11 13 12 14 7 9 MODEL 7415112 xsimcode file MODEL_PATH LS SCB func 1ls112 mntymx Origin 74112 mod N Netist Template Netlist Preview Model Fie 777777 Figure 10 Example of a linked Digital SimCode model For more information on working with digital device models refer to the Creating and Linking a Digital SimCode Model application note Specif
14. 0 April 06 2006 11 Linking a Simulation Model to a Schematic Component Model Kind Parameters Port Map Component parameter Area Factor Starting Condition Initial Voltage i Temperature Figure 13 Component level parameters for the JAS33 diode example For more information regarding parameters set at the component level for each of the built in analog SPICE3f5 models predefined XSpice and subcircuit models and TTL and CMOS digital device models refer to the relevant sections of the Simulation Models and Analyses Reference Linking from an External Database Altium Designer provides the ability to place components directly from a Libraries company database by creating and using a Database Library DBLib Libraries Search Cee Placement is carried out from the Libraries panel which after installing the MyExample DbLib Switching Diodes database library acts as a browser into your database Figure 14 z With this method of linking the component symbol model and parameter information for a component is stored as part of the record definition for that component in the external database The referenced schematic component in an underlying component library SchLib is simply an empty shell ey with a defined symbol only There are no linked models and no defined D design parameters When the component is placed its parameter and model information is created on the fly using the c
15. 74 Project dialog For more information about linked models including referencing and searching refer to the Component Model and Library Concepts article Once successfully linked an entry for where the corresponding model Sim Model General Diode Model Kind Parameters Port Map file md1 ckt has been found TRTE i will be displayed Figure 11 shows General Mij Spice Prefix H r Model Sub Kind aeaa i the Model Kind tab of the Sim ModelName JAS33 Model dialog with the Model Capacitor Semiconductor Description Switching Diode F Coupled Inductors Location information for our JAS33 Dido EE S Generic Editor Inductor examp le Potentiometer Model Location f Resistor O Any Notice in Figure 11 that the model ResstatVenable OlnFie has been located by using the Full IE OOA FullPath _ ry Hardwited_Protection JAS33 mdl Path option Found In C Program Files 4ltium Designer 64Library H ardwire JAS 33 mal DESIGNATOR 1 2 MODEL amp AREA FACTOR amp STARTING CONDITION INITIAL VOLTAGE gt z i Netlist Template Netlist Preview _ Model Fie Figure 11 Model location information for the JAS33 diode example 10 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component Mapping the Ports Once the simulation model file has been linked to the schematic component you need to ensure that the pins of the schematic component are correctly mapp
16. ally require good knowledge of the language in which the model definition is being written for example when creating a subcircuit or a digital device definition using Digital SimCode When creating a simple MDL file for a built in SPICESf5 or supported PSpice model you will need good knowledge of the parameters available for and supported by that device For more information on using Altium Designer s Spice Model Wizard to create a simulation model refer to the application note SPICE Model Creation from User Data For more information on the various predefined models available with Altium Designer including information on the built in analog SPICE3f5 and supported PSpice models refer to the Simulation Models and Analyses Reference For more information on working with digital device models refer to the application note Creating and Linking a Digital SimCode Model Readying the Model for the Altium Designer Arena Once you have the required simulation model you need to ensure that it is in a form compatible with Altium Designer To begin with it must be in one of the supported model formats e SPICE3f5 With Altium Designer s support for e XSpice PSpice models very little will need to be done to the majority of e PSpice models acquired in PSpice format For a simple model the definition must be saved with an md1 extension e g other than to paste the required MyBJT md1 For a more complex SPICE subcircuit the definition must b
17. anel 4 assive click on the associated Add button and choose Po z a perrea zf Simulation as the model type in the Add New atia A ass i Model dialog that appears Model Type Footprint Footprint Model Manager PCB3D Signal Integrity Pl Figure 3 Adding models from the SCH Library panel F Model Type Location Description Mask Component Description 1 Diode BA5116 Silicon Low Leakac Diode BAT17 Silicon RF Schottky u Diode BAT18 Low Loss RF Swite Add Footprint iF Diode BBY31 SOT23 Silicon Plan F Footprint e Use the Model Manager dialog Tools Model DiodeBBY40 SOT23SiconPlan c EF i ETE Bi DIODE JAS33 Silicon Switching D PCB3D Manager Simply select the entry for the F Dpy 16 Seq 13 7 mm Gray Surfe J D Tunnell Tunnel Diode ALL L Signal Integrity s no preview available component click on the drop down arrow GED Tunnel2 Tunnel Diode Dep i F Dpy Amber CA 7 62 mm Black Surf associated with the Add button and choose UB DpyAmberCC 762mm Black Sut sz Simulation from the list of available model types Figure 4 Adding models using the Model Manager Configuring the Link Whichever method you use to add a simulation model link to a component you will be taken to the Sim Model dialog Figure 5 command central for configuring the link to the required simulation model 4 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Compo
18. appear on the Port Map tab of the Sim Model dialog es Spice Prefix Sim Port M Si Each pin pairing must be entered in the following aE m ae format SchematicPinNumber ModelPinNumber oN eis a with each mapped pairing separated by a comma ae schematic Pin Model Pin For our diode example schematic pin 1 anode 114 114 must be mapped to model pin 1 anode and 3 K 2 K schematic pin 3 cathode must be mapped to model pin 2 cathode This would be entered into the database field as Lia 312 Figure 17 Specifying component to model pin mapping Sim Excluded Parts Create this field in the database if you wish to exclude certain parts of a multi part component from being simulated This information corresponds to the Exclude part from simulation option on the Port Map tab of the Sim Model dialog By default all parts of a multi part component are included in a simulation so you only need to specify the parts you wish to exclude by number Separate multiple parts in the exclusion list using commas For example if a component has four parts and you do not want parts 2 and 4 to be included in any simulation then you would enter the following into the database field 2 4 Sim Parameters Create this field in the database if you wish to assign values to simulation parameters for the model These are parameters that can be defined at the component level as opposed to the more advanced parameters that can be included
19. ce Prefix L Model Name pspicelND Description Inductor Diode TE PE Inductor Potentiometer Resistor Any Resistor S emiconductor Resistor ariable Spice Subcircuit O In File OFullPath Oin Integrated Library Miscellaneous Devices IntLib FoundIn C Program Files Altium Designer 6 Example pspicelND mdl MODEL pspiceIND IND L 1 IL1 100 IL2 100 Tc1 100 Tc2 100 Netlist Template Netlist Preview Model File _ Figure 9 Example of a linked PSpice Inductor model models see Linking to a SPICE3f5 Model The required Spice Prefix field will be set automatically For the exceptions you will need to set the Model Kind to General the Model Sub Kind to Generic Editor and enter the applicable netlist template format You will also need to set the Spice Prefix accordingly For more information on the level of support for PSpice models in Altium Designer including netlist template entries and supported parameters refer to the Support for PSpice Models in Altium Designer application note Linking to a Digital SimCode Model Digital device models are created using the Digital SimCode language This is a special descriptive language that allows digital devices to be simulated using an extended version of the event driven XSpice For a digital device the schematic component is linked to the SimCode model by using an intermediate model file md1 effectively calling
20. e model into a file with the MDL extension saved with a ckt extension e g MyOpAmp ckt Model Conversion There are many variants of a out in the design ote today Some commercial versions or variants of SPICE3f5 PSpice HSPICE NSPICE and Eldo to name but a few SPICE have proprietary extensions that limit Discussion of these various formats and the models they support is the portability of model descriptions beyond the scope of this document between different vendor SPICE formats The majority of manufacturers will provide pure SPICE SPICE3f5 or PSpice formats If your model is in a format other than those supported by Altium Designer or it is a PSpice model type that is currently not supported you will need to convert it into the required format This is a lf a PSpice model type is supported but a particular parameter is not that parameter in many cases can be ignored with only manual process requiring the user manuals for both source e g PSpice minor impact on the simulation results and target e g SPICE3f5 SPICE formats and preferably a detailed However the true impact on the results will knowledge of the two Compare the syntaxes of the two formats and depend on which parameter it is and the nature of the circuit simulation convert to something compatible 2 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component Linking the Model to a Schematic Component Once
21. ed to the pins of the model This is carried out on the Port Map tab of the Sim Model dialog Sim Model General Diode Model Kind Parameters Port Map For the built in SPICE3f5 and supported PSpice Schematic Pin Medel Pin models the function of each of the pins ina 1A 1 model can be found in the general form section 3K s for that model in the SPICE 3f5 user manual 1 A For subcircuit models the manufacturer will a D typically insert comments for each pin of the model describing that pin s function If no commenting is evident then the pinout of the model will typically be that of the physical DIODE JAS33 device itself Consult the datasheet for the device in this case For Digital SimCode models the mapping of the component pins to the INPUTS and OUTPUTS declared in the SimCode file will depend on the input and output node list entries in the netlist template For more detailed i s information refer to the Creating and Linking a Netlist Template NelistPreview Modelfle 7 o Digital SimCode Model application note Figure 12 Ensuring correct component pin to model port mapping Part 1 1 DESIGNATOR 1 2 MODEL amp AREA FACTOR amp STARTING CONDITION IN For each schematic pin simply use the available drop down to change the associated Model Pin entry accordingly If the device is multi part be sure to check the mapping for each part Defining Component Level Parameters For the built in
22. evel Clear lt gt Navigator SCHLIB Filter ib BS S107 20 Grid 10 System Design Compiler Help SCH Instruments Figure 1 Defining the component in the Schematic Library Editor For details on creating components in Altium Designer refer to the Creating Library Components tutorial AP0142 v1 0 April 06 2006 3 Linking a Simulation Model to a Schematic Component Adding the Link Whether you have created a new schematic component or are using an existing one it is now time to create a link to the simulation model file The first step in this process is to add a simulation model link to the component carried out in the Schematic Library Editor in one of the following ways v e Inthe Models region of the Editor s main design gt window click on the drop down arrow associated with the lower left button and choose Simulation from the list of available model types Taisia DD Model Type Location Description Ea mee BddFootpint gt Bemove Edt Footprint Components Description Simulation F Diode BBY31 0723 Silicon Planar Variable Capacitance Diode secu F Diode BBY40 50723 Silicon Planar Variable Capacitance Diode L Signal Integrity E DET High Speed Switching iF Dpy16 Seg 13 7 mm Gray Surface As AllnGaP Red Alphanumeri Figure 2 Adding models from the main editing window H D Tunnell Diode ce Model Pins Name Type T P e Inthe Models region of the SCH Library p
23. h Current Controlled e Switch Voltage Controlled e Transistor BUT e Transistor JFET e Transistor MESFET AP0142 v1 0 April 06 2006 5 Linking a Simulation Model to a Schematic Component e Transistor MOSFET e Transmission Line Lossy e Transmission Line Uniform Distributed RC e Voltage Source Piecewise Linear If you are linking a SPICE 3f5 model for any of these inherent SPICE devices simply select the Model Kind and Sub Kind as per the above list The required Spice Prefix field will be set automatically Considering our JAS33 example diode model the entries in the dialog at this point would be Model Kind General Model Sub Kind Diode Spice Prefix D The Netlist Template The netlist template allows access to the information that is entered into the XSpice netlist for a given component It is accessed by clicking on the Netlist Template tab at the bottom of the Sim Model dialog LA_ DESIGNATOR 1 2 INDUCTANCE A LE_ DESIGHATOR 3 4 INDUCTANCE B DESIGNATOR LA DESIGNATOR LE DESIGHATOR COUPLING FACTOR Hethst Template Netlist Preview Model File Figure 6 Example netlist template entry for a coupled inductor model It is read only for the predefined SPICES3f5 model types If however one of these predefined entries does not allow enough control over the information placed in the netlist you can define your own template To define your own netlist template and indeed this is a requirement of certain
24. l be used to locate the first model file containing a match PAS oo OPDE DARDARA EDIEN for the model specified in the Sim Model Name field Foundin CDE Libs Switching Diodes Libranes45 33 ml Figure 15 Providing model location information Options dialog Tools Options AP0142 v1 0 April 06 2006 13 Linking a Simulation Model to a Schematic Component Sim Kind Create this field in the database to specify the parent category for the model being linked to This information corresponds to the Model Kind field on the Model Kind tab of the Sim Model dialog The text entered must be as it appears in the Model Kind field For our example diode we would enter General Sim SubKind Create this field in the database to specify the type of model being linked to This information corresponds to the Model Sub Kind field on the Model Kind tab of the Sim Model dialog The text entered must be as it appears in the Model Sub Kind field For our example diode we would enter Diode Sim Netlist Create this field in the database if you are specifying your own netlist template and have set the Sim SubKind field to Generic Editor Simply enter the netlist template information After the component is placed this information will appear on the Netlist Template tab of the Sim Model dialog Sim Model Sim SubKind Sim Spice Prefix Sim Part Map F4ALS74 Libraries 74L574 mdl General Generic Editor DESIGNATOR 1 2 3 4 5 6 1 3 4 5
25. nent Sim Model General Generic Editor Say Model Kind Parameters Port Map Model Kind l General Spice Prefix M odel Sub Kind Capacitor Capacitor S emiconductor Coupled Inductors Diode Inductor Potentiometer Resistor Resistor Semiconductor Resistor ariable Spice Subcircuit Model Name Model Name Description Model D escription Model Location Netlist Template A Netlist Preview 4 Model File Model File Figure 5 Configuring the model link in the Sim Model dialog Specifying Model Type The Model Kind and Model Sub Kind fields need to be set according to the particular model type you are linking The Model Kind drop down gives access to a number of model categories containing the range of analog device models built in to SPICE The Model Sub Kind region lists all model types in a chosen category Linking to a SPICE3f5 Model Many of the built in SPICE models require no model file Definition is made by setting the required values for model parameters at the component level The following is a list of the device models that support the use of an associated model file which can contain a variety of parameters used to model advanced characteristics of the device Entries in the list are in the format Model Kind Model Sub Kind e Current Source Piecewise Linear e General Capacitor Semiconductor e General Diode e General Resistor Semiconductor e Switc
26. on No Revision 06 Apr 2006 Initial Document Release Software hardware documentation and related materials Copyright 2006 Altium Limited All rights reserved You are permitted to print this document provided that 1 the use of such is for personal use only and will not be copied or posted on any network computer or broadcast in any media and 2 no modifications of the document is made Unauthorized duplication in whole or part of this document by any means mechanical or electronic including translation into another language except for brief excerpts in published reviews is prohibited without the express written permission of Altium Limited Unauthorized duplication of this work may also be prohibited by local statute Violators may be subject to both criminal and civil penalties including fines and or imprisonment Altium Altium Designer Board Insight CAMtastic CircuitStudio Design Explorer DXP LiveDesign NanoBoard NanoTalk Nexar nVisage P CAD Protel SimCode Situs TASKING and Topological Autorouting and their respective logos are trademarks or registered trademarks of Altium Limited or its subsidiaries All other registered or unregistered trademarks referenced herein are the property of their respective owners and no trademark rights to the same are claimed 18 AP0142 v1 0 April 06 2006
27. ormation and store it of course use your own field names in the database table but you will then into the target database need to manually map these fields to the correct design parameters We shall use our trusty JAS33 diode model to illustrate the linking 12 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component Only one simulation model link can be defined in an external database Typically there will only ever be a single model linked to the component Should you wish to set up multiple simulation model links the other links will need to be defined and stored with the component in the source schematic library file Sim Model Name Create this field in the database to specify the name of the model that a i i When mapping database fields to you wish to use After the component is placed this information will design parameters in the DBLib file the appear in the Model Name field on the Model Kind tab of the Sim Sim Model Name field is analogous to Model dialog the Footprint Ref Library Ref etc fields In the database record for our example diode we would enter JAS33 into this field Sim Description Create this field in the database if you wish to provide a description for the linked model This information is optional and does not affect the operation of the simulation model link After the component is placed this information will appear in the Description field on the Model Kind tab
28. orresponding fields in the matched database record and in accordance with defined mapping DIODE JAS33 As part of the Database Library feature you can add simulation model 7 Modei ype Sonce information to a component record in the external database When the J SOT 23 Footprint SwitchingDiodes PcbLib component is placed on the schematic this information will be used to create the link to the referenced simulation model filling in the required l Fi 14 l ith and corresponding areas of the Sim Model dialog igure 14 Component placement wit sim link direct from a database library For detailed information on using the Database Library feature refer to the Using Components Directly from Your Company Database application note This document should ideally be read prior to or at least in conjunction with the remainder of this document Adding Sim Information to an External Database Table The following sections discuss each of the database fields that can be added Ta to an external database table in order to define the simulation model link a e E i l l i manually into the external database Using which will be created upon component placement If the field names are the Integrated Library to Database Library named exactly as indicated the Database Field to Design Parameter mapping Translator Wizard will not extract the will be automatically set on the Field Mappings tab of the DBLib file You can required simulation inf
29. uld be Temperature Area Factor 2 Temperature 22 Checking the Link Once you have placed the component from the Database Library it is not a bad idea to check the simulation link and to verify that the information defined for the link is indeed as required Simply double click on the placed component to access its associated Component Properties dialog In the Models region of the dialog simply double click on the simulation model entry to access the Sim Model dialog from where you can check that Figure 18 Specifying values for associated model parameters component level e Any linked model file has been located as expected When found the Model File tab of the dialog will display the content of the file e The remaining simulation information from the database has been added to the dialog as expected Figure 19 illustrates the information added to the Sim Model dialog for the JAS33 diode example upon placement of the component on the schematic sheet 16 AP0142 v1 0 April 06 2006 Linking a Simulation Model to a Schematic Component DIODE JAS33 Component Properties 2 Properti v Parameters for D DIODE JAS33 Designator D MVisible Locked Visible Name Value Type Comment DIODE JAS33 v Visible UO att Number DIODE J amp S33 STRING M Part 1 1 C Locked Description Silicon Switching Diode for High Speed Switching Unique Id SVGAVPCF Type Standard v
30. ying Model Name Use the Model Name field in the Sim Model dialog to specify the name of the model to which you are linking This must be the name as it appears in the model file For an MDL file the name must be that appearing in the MODEL line of the model s definition Consider a model for a diode with the following definition MODEL LN4002 D IS 2 55E 9 RS 0 042 Nal 75 TT 95 60E 60 CJO 1 85E 11 VJ 0 75 M 0 333 BV 100 IBV 1E 5 The model name here is 1N4002 This is the name that must be entered into the Model Name field For a CKT file the name must be that appearing in the SUBCKT line of the model s definition Consider a model for a fuse with the following definition SUBCKT FUSE 1 2 PARAMS CURRENT 1 RESISTANCE 1m SW1 1 2 3 0 SMOD OFF BNLV 3 0 V abs v 1 2 MODEL SMOD SW VT CURRENT RESISTANCE RON l1g ROFF RESISTANCE ENDS FUSE The model name here is FUSE This is the name that must be entered into the Model Name field Use the optional Description field to enter a brief description of the model for example its purpose should you wish AP0142 v1 0 April 06 2006 9 Linking a Simulation Model to a Schematic Component Specifying Model Location Use the Model Location region of the Sim Model dialog to control where the model is searched for Any rch ll valid m ions for a matching m l i y PEATONES A VANG ORC NOC at Pier aim ale hinges When the search is across all valid model e In File
31. you have the required simulation model file you will need to link it to the schematic component that you wish to place and use in your design To illustrate by example the steps that need to be taken to link a model to a schematic component we shall use a simple and fictitious diode model JAS33 obtained from a manufacturer and pasted into the file JAS33 mdl Creating the Schematic Component The first step typically when creating a new simulation ready Pan eet Nai i Often you ll find it easier to copy an device is to create a schematic library component for that device existing component and then modify it as and define the symbol graphics This is done using Altium required rather than create the Designer s Schematic Library Editor component and related graphics from scratch Figure 1 shows the symbol graphics for our simple diode component DIODE JAS33 x Altium Designer E DXP Eile Edit View Project Place Tools Reports Window Help C Program Files Altium Designer 6 Lib 3 IG BS Li e x eZ HE GD Mode Salose Components Description 1 Diode BAT18 Low Loss RF Switching 1 Diode BBY31 0723 Silicon Planar Ya Diode BBY40 0T23 Silicon Planar Va FEA DIODE JAS33 EDpy16 Seq 13 7 mm Gray Surface LE D Tunnell Tunnel Diode ALC Model Y saueIqT pieoqdig w Pa Passive Passive 5 T a O 7 m T Pa Model Type Description v gt Mask L
Download Pdf Manuals
Related Search
Related Contents
Hoover HFZE 6085XE AG-780 - Teacmexico.net Yamaha MSP5A Owner's Manual Netgear FS728TP User's Manual Copyright © All rights reserved.
Failed to retrieve file