CurrentPWL
Current Source
Library
Spice/Analog/Basic
Description
The Current PWL block is a source that generates a current by linear interpolation in a PieceWise Linear table (PWL).
The time points and current values are given as paired values, where the first given parameter contains the first time point and the second data contains the first current to be interpolated.
The table interpolation has the following properties :
• The time points need to be monotonically increasing
• Values outside of the table range are not computed by extrapolation through the last or first two points of the table, but computed from the last given point
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
sp_PWL | PWL | String | ||
sp_R | Repeat sequence | Repeat sequence checkbox allows to repeat the signal till the end of the simulation. | Number | 0 |
sp_timepoints | Pair values of Time Current. | Pair values of Time Current. Should be filled as : T0 I0 T1 I1 .. Tn In R.R is only needed if you want to repeat a sequence R only needed to repeat a sequence. | Matrix of size Mx2 | |
sp_Spice | Additional Spice Parameters | String |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
use_ac | Use AC | Check this parameter to set the AC parameters | Number | 0 |
ac_magnitude | AC Magnitude | Value of the AC current source | Scalar | |
ac_phase | AC Phase | Value of the AC phase | Scalar |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
V+ | implicit | Positive pin | input | 1 |
V- | implicit | Negative pin | input | 2 |