Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
http://www.eng.yale.edu/pjk/EESrProj_02/l
uckenbill_html/node5.html
While the implementation of the sum-product algorithm as an analog circuit may
seem difficult, recall from section 4 that the marginalization steps consist entirely
of multiplication and addition, hence the name of algorithm:
This type of calculation maps naturally into analog circuitry if we are provided the
correct building blocks.
Addition of currents in analog circuits is particularly elegant. Kirchhoff's current
law states the sum of currents into a node is zero, and so a current adder is simply a
short of one wire to another. On the other hand, building analog CMOS circuits
that perform multiplication is difficult. In the normal operating regions of a MOS
transistor, the saturation current increases as the square of its gate voltage, and
quadratic functions do not lend themselves to multiplication.
Traditionally, multipliers are built by combining elements that respond
exponentially and logarithmically to their inputs. In his multiplier circuit, Gilbert
showed that bipolar transistors could be used as the exponential elements and
logarithmic circuits could be formed from diode-connected transistors. This project
uses MOS transistors in their subthreshold operating region to achieve the same
type of exponential response.
region of a MOS transistor, the flow of current from source to drain is due to
diffusion [14]. Diffusion current in a MOS transistor is given by:
(5)
where W is the channel width, D is the diffusion constant of the carriers, N is their
density, and z is the distance between source and drain. The density of the carriers
decreases linearly along the channel, so
to
.
density at the drain:
can be simplified
is their
(6)
(7)
We first replace
equation:
and
to get:
(8)
where
is the surface potential at the source and along the channel. If we then
assume that excursions are small around the operating point, we can replace
with
have:
, we
(9)
To simplify the equation, we can assume the substrate is intrinsic and so no charge
from ionized donors or acceptors in the substrate reduces the effectiveness of an
applied electric field at the gate. is the term that accounts for the differences in
surface potential along the channel from
, so we eliminate it. Because
a voltage that only changes with temperature, we replace it with a single
variable,
is
:
(11)
Another form of this equation, which is less accurate, but makes further algebraic
manipulations possible, assumes that the transistor is in the saturation mode where
changes in
. In this mode,
which shows that we can model the transistor as having a simple exponential
response when saturated and in the subthreshold region. This response is illustrated
by figure 3.
Figure 3: Drain current vs. gate voltage for a saturated subthreshold CMOS transistor.
Diode-Connected Transistors
As previously mentioned, a Gilbert multiplier is typically built of exponential and
logarithmic components, and the logarithmic component is typically a diodeconnected bipolar transistor. By solving equation 12 for
, we see that a saturated
diode-connected subthreshold CMOS transistor does takes the logarithm of its
input current:
(13)
Current Mirrors
A natural extension to the diode-connected transistor configuration is a current
mirror where the gate of another transistor is connected to the diode-connected
transistor's input. In this configuration, the attached transistor creates a mirror copy
of the current flowing through the diode-connected transistor, provided the
geometries of the two transistors are the same. The derivation is simple, we need
only plug the diode-connected transistor equation, 13, into the transistor
equation, 12:
(14)
(16)
While this gives us a fairly accurate way to multiply a current by a fixed value, it
has limitations. This method relies on making the transistors physically smaller or
larger, which can only be extended to a point. For example, to scale a current to 10
percent of its value, the width of the output transistor would have to be 10 percent
of the input transistor's width, assuming the lengths remain constant. This would
indicate that the width of the input transistor would have to be at least 10 times the
minimum resolution of the process, and no scaling less than 10 percent could be
achieved in a single stage.
Differential Pairs
With a logarithm circuit in hand, all that is needed to build a multiplier is a circuit
that has exponential response, and we have already shown that the response of a
single subthreshold MOS transistor has that. This presents the question of how to
take advantage of the transistor's exponential response. Our messages are sent in
the form of currents, but a diode-connected transistor converts a current to a
voltage during its computation. We need a circuit that takes the exponential of a
voltage and outputs a current, and that circuit can be built from a simple
differential pair, shown in figure 5.
and
depending on
and
is set by
.
and
Again, we will assume that the transistors Q1 and Q2 are saturated and operating in
the subthreshold mode. From Kirchhoff's current law, we know that
Substituting equation 12 for
and
, we get:
(17)
(19)
If we then replace
(21)
While the circuit clearly has some type of exponential response, it is not
immediately clear how to take advantage of it. The trick is to eliminate
the
term in the divisor of equations 18 and 19. This will happen by
combining the differential pair with three diode-connected transistors.
if
and
and
sum to 1.
, and
and
(23)
(24)
and
(25)
Which is the multiplication we are interested in, as long as we can satisfy the
requirement that
and
always sum to some constant value. In the context
of the sum-product algorithm, we are always multiplying the probabilities that
events happened or did not happen. By treating
Figure 7: Plot showing the linear multiplicative nature of the partial Gilbert multiplier.
sweeps from 1nA to 10nA, and
The plot is of
vs.
is held constant.
and