User Guide
Chapter 6 Analog behavioral modeling
180
TABLE (-15, -15), (15,15)
EXPR V(%IN+, %IN-)
First, EXPR is evaluated, and that value is used to look up
an entry in the table. EXPR is a function of the input
(current or voltage) and follows the same rules as for
VALUE expressions.
The table consists of pairs of values, the first of which is an
input, and the second of which is the corresponding
output. Linear interpolation is performed between entries.
For values of EXPR outside the table’s range, the device’s
output is a constant with a value equal to the entry with
the smallest (or largest) input. This characteristic can be
used to impose an upper and lower limit on the output.
An example of a table declaration (using the TABLE
property) would be the following:
TABLE =
+ (0, 0) (.02, 2.690E-03) (.04, 4.102E-03) (.06, 4.621E-03)
+ (.08, 4.460E-03) (.10, 3.860E-03) (.12, 3.079E-03) (.14,
+ 2.327E-03)
+ (.16, 1.726E-03) (.18, 1.308E-03) (.20, 1.042E-03) (.22,
+ 8.734E-04)
+ (.24, 7.544E-04) (.26, 6.566E-04) (.28, 5.718E-04) (.30,
+ 5.013E-04)
+ (.32, 4.464E-04) (.34, 4.053E-04) (.36, 3.781E-04) (.38,
+ 3.744E-04)
+ (.40, 4.127E-04) (.42, 5.053E-04) (.44, 6.380E-04) (.46,
+ 7.935E-04)
+ (.48, 1.139E-03) (.50, 2.605E-03) (.52, 8.259E-03) (.54,
+ 2.609E-02)
+ (.56, 7.418E-02) (.58, 1.895E-01) (.60, 4.426E-01)
Pspug.book Page 180 Wednesday, November 11, 1998 1:14 PM