Source waveforms
Set DC, AC and time-domain values on Spice++ sources: SIN, PULSE, PWL, EXP, SFFM and AM, with examples.
A source value can combine a DC level, an AC magnitude and phase for .ac, and one time-domain function for .tran.
Functions
| Function | Arguments |
|---|---|
SIN | offset, amplitude, frequency, delay, damping, phase |
PULSE | v1, v2, delay, rise, fall, width, period |
PWL | time and value pairs |
EXP | v1, v2, rise delay, rise tau, fall delay, fall tau |
SFFM | offset, amplitude, carrier frequency, modulation index, signal frequency |
AM | amplitude, offset, modulating frequency, carrier frequency, delay |
Examples
5 DC 0 AC 1 SIN(0 1 1k) PULSE(0 5 0 1n 1n 0.5m 1m) PWL(0 0 1m 5 2m 5 3m 0)