23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

198 3. Reference Manual<br />

Any symbol which appears in the value field of a model netlist entry or in a set of behavioral<br />

equations can be designated as a parameter. The difference between parameters and other symbols<br />

is that you can assign instance-specific values only to parameters. Other symbols are regarded<br />

as global quantities which cannot be bound to instance-specific values in a model reference. In<br />

addition, if a model parameter p is left unbound in a model reference, it will be replaced by a<br />

uniquely instantiated symbol p$instance upon subcircuit expansion whereas symbols representing<br />

global quantities are not changed. The following line shows a valid example for the Parameters<br />

declaration of a BJT model:<br />

Parameters −> {IS, N, BF, BR}<br />

In some cases it is necessary to override the value of a global circuit parameter locally for a particular<br />

model instance. For example, you may have set the environmental temperature TEMP in a Circuit<br />

object with the GlobalParameters statement<br />

Circuit[<br />

Netlist[ ],<br />

GlobalParameters[TEMP −> 300.15]<br />

]<br />

but you want to specify a different operating temperature for an individual device, such as a<br />

temperature sensor or the output transistor of a power amplifier. In order to override the global<br />

value of TEMP for this device, the local temperature value must be specified explicitly in the<br />

corresponding model reference:<br />

{QOUT, {VCC −> C, 5 −> B, out −> E},<br />

Model −> BJT, Selector −> DC,<br />

IS −> 1.*^−16, N −> 1., BF −> 100., BR −> 1., TEMP −> 340.}<br />

However, TEMP is a global quantity and not an instance parameter of the model BJT/DC. Therefore,<br />

the local setting TEMP −> 340. in the model reference QOUT has no effect unless the Parameters<br />

specification in the model definition is modified as follows:<br />

Parameters −> {IS, N, BF, BR, Global[TEMP]}<br />

Now the setting Global[TEMP] allows you to change the value of TEMP individually for any instance<br />

of BJT/DC while the setting from the GlobalParameters list will be used for all instances for which<br />

no local temperature value is given.<br />

Defaults<br />

Defaults−>{param <br />

−>value , param <br />

−>value , † † † }<br />

specify default values for model parameters<br />

Format of the Defaults argument.<br />

With the Defaults keyword, you can specify default values for model parameters which have been<br />

left unbound in a model reference. For example, with the settings

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!