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.

3.2 Subcircuit and Device Model Definition 199<br />

<br />

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

Defaults −> {IS −> 1.*^−16, N −> 1., BF −> 100.,<br />

BR −> 1., TEMP −> 300.15},<br />

<br />

you can instantiate a default BJT device without having to specify values for the parameters in the<br />

model reference:<br />

{QDEF, {nout −> C, 2 −> B, 3 −> E}, Model −> BJT, Selector −> DC}<br />

During subcircuit expansion the numerical default values specified by the Defaults argument are<br />

used as model parameter values. The above model reference is thus processed as if its value field<br />

had been specified as shown below.<br />

{QDEF, {nout −> C, 2 −> B, 3 −> E}, Model −> BJT, Selector −> DC,<br />

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

Translation<br />

Translation−>{param <br />

−>expr <br />

, param <br />

−>expr <br />

, † † † }<br />

specify model parameter translation rules<br />

Format of the Translation argument.<br />

The optional argument Translation allows you to specify conversion rules for calculating values of<br />

internal model parameters from external parameters declared with the Parameters argument.<br />

For example, the following code defines a simple BJT small-signal model with the external parameters<br />

RB (base resistance) and<br />

beta (current gain). Internally, the model is implemented using a VCCS whose transconductance gm<br />

is calculated automatically from RB and beta by means of the Translation rule gm −> RB*beta.<br />

Model[<br />

Name −> "BJT", Selector −> "SimpleACgm",<br />

Ports −> {"C", "B", "E"},<br />

Parameters −> {RB, beta},<br />

Translation −> {gm −> RB*beta},<br />

Definition −> Netlist[<br />

{"RB", {"B", "E"}, RB},<br />

{"VC", {"B", "E", "C", "E"}, gm}<br />

]<br />

]<br />

Translation rules may also be specified using the RuleDelayed operator (:>). This enables you<br />

to defer the evaluation of function calls on the right-hand sides of translation rules until model<br />

expansion. In the following list of rules, the thermal voltage Vt of a semiconductor device is

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

Saved successfully!

Ooh no, something went wrong!