23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.3 Circuits and Subcircuits 51<br />

C<br />

B<br />

E<br />

CM<br />

B<br />

E<br />

IB<br />

X<br />

RB<br />

C<br />

beta*IB<br />

E<br />

B<br />

E<br />

IB<br />

X<br />

RB<br />

beta*IB<br />

R0<br />

C<br />

E<br />

Figure 3.2: Different transistor small-signal models: simple (left), dynamic (right)<br />

Both circuits have in common that they represent the same object, namely an NPN transistor. Thus,<br />

they are two members of a subcircuit class we shall name NPNTransistor:<br />

Name −> NPNTransistor<br />

Within this class, each member must have a unique selector by which it can be identified. We will<br />

denote the simple small-signal model on the left-hand side of Figure 3.2 by<br />

and the one on the right-hand side by<br />

Selector −> ACsimple<br />

Selector −> ACdynamic<br />

From now on we will adopt the notation name/selector for denoting a subcircuit definition. For<br />

instance, we will refer to the model defined with Name −> NPNTransistor and Selector −> ACsimple<br />

as NPNTransistor/ACsimple. Both subcircuits contain four nodes: B, C, E, and X, where B, C, and E<br />

represent the transistor’s base, collector, and emitter terminal respectively. The node X is an internal<br />

subcircuit node which is needed for properly connecting the controlling branch of the currentcontrolled<br />

current source in series with the base resistor RB (see also Section 2.2.2). Therefore, we<br />

declare only B, C, and E as port nodes of the subcircuits in order to make X invisible from the outside:<br />

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

Note that we use strings to denote the port nodes instead of symbols. Although this requires some<br />

more typing this is the recommended way for specifying nodes: If we would have used symbols<br />

in the above example, the symbol for the emitter node E could have been mixed up with the<br />

Mathematica symbol E which denotes the exponential constant e.

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

Saved successfully!

Ooh no, something went wrong!