Issue link: https://resources.pcb.cadence.com/i/1180526
PSpice User Guide Analog behavioral modeling October 2019 360 Product Version 17.4-2019 © 1999-2019 All Rights Reserved. Example 2 Consider the device in Figure 6-18. Figure 6-18 GMULT part example. With this device, the output is a current is equal to the ratio of the voltages at input pins 1 and input pins 2. If V(%IN2+, %IN2-) = 0, the output depends upon V(%IN1+, %IN1-) as follows: if V(%IN1+, %IN1-) = 0, output = 0 if V(%IN1+, %IN1-) > 0, output = MAXREAL if V(%IN1+, %IN1-) < 0, output = -MAXREAL where MAXREAL is a PSpice internal constant representing a very large number (on the order of 1e30). In general, the result of evaluating an expression is limited to MAXREAL. Note that the output of the part can also be used as part of the controlling function. To create this device, you would first make a new part, GDIV, based on the GMULT part. Edit the GDIV template to divide the two input values rather than multiply them. Lookup tables (ETABLE and GTABLE) The ETABLE and GTABLE parts use a transfer function described by a table. These device models are well suited for use with measured data. The ETABLE and GTABLE parts are defined in part by the following properties (default values are shown):