EXXXXX NP NM FREQ { V | I } = (f1, m1, ph1) (f2, m2, +ph2) <(fn, mn, phn)>
GXXXXX NP NM FREQ { V | I } = (f1, m1, ph1) (f2, m2, +ph2) <(fn, mn, phn)>
Frequency Table Modeling allows the user to model a transfer function based on table of frequency (Hz) points. For each frequency point there is a magnitude (dB) and phase (deg) pair associated with that frequency.
The first frequency point in the table should be 0 Hz (DC). If it is not 0, DR. SPICE will make a 0 Hz point by copying the lowest frequency point. The frequency response for frequencies greater than the largest frequency point in the table is the same as the largest frequency point.
NOTE: Make sure the transfer function create by using Frequency Tables is casual. (DR. SPICE will issue a warning if it is noncasual.) You can add phase to each frequency point to make the filter casual.
Examples:
EF1 4 0 FREQ {V(1)} =
+ (0 , 6.02, 0.00)
+ (1e4, 6.02, -0.07)
+ (1e5, 6.02, -0.72)
+ (1e6, 5.99, -7.19)
+ (1e7, 3.13, -64.3)
+ (1e8, -6.12, -162)
GF1 5 0 FREQ {I(R1)} = + (0 , 6.02, 180.0) + (1e4, 6.02, 180.0) + (1e5, 6.02, 179.0) + (1e6, 5.99, 173.0) + (1e7, 3.13, 116.0) + (1e8, -6.12, 18.10)