PWL x1,y1 x2,y2 ...
Defines a piecewise linear transfer function or time dependent value.
This is similar to, but not exactly the same as, the Berkeley SPICE PWL for fixed sources.
For fixed sources, it defines voltage or current as a function of time.
The meaning of the x and y values depends on the component type:
component | X | Y |
C (capacitor) | voltage | charge |
E (VCVS) | voltage | voltage |
F (CCCS) | current | current |
G (VCCS) | voltage | current |
H (CCVS) | current | voltage |
I (current source) | time | current |
L (inductor) | current | flux |
R (resistor) | current | voltage |
V (voltage source) | time | voltage |
Y (admittance) | voltage | current |
VCCAP | voltage | capacitance |
VCG | voltage | conductance |
VCR | voltage | resistance |
trans-capacitor | voltage | charge |
The values of x must be in increasing order.
Outside the specified range, the behavior depends on the type of element. For fixed sources, the output (voltage or current) is constant at the end value. This is compatible with SPICE. For other types, the last segment is extended linearly. If you want it to flatten, specify an extra point so the slope of the last segment is flat.
There are no additional parameters, beyond those that apply to all.