CurrentPWL

Current Source

    CurrentPWL

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

CurrentPWL_0

NameLabelDescriptionData TypeValid 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
1

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

Additional Spice Parameters.

String

CurrentPWL_1

NameLabelDescriptionData TypeValid Values

use_ac

Use AC

Check this parameter to set the AC parameters

Number

0
1

ac_magnitude

AC Magnitude

Value of the AC current source

Scalar

ac_phase

AC Phase

Value of the AC phase

Scalar

Ports

NameTypeDescriptionIO TypeNumber

V+

implicit

Positive pin

input

1

V-

implicit

Negative pin

input

2