1 .subckt VOLTAGE_SOURCE_CONST ( p n )
4 .ends VOLTAGE_SOURCE_CONST
5 .subckt VOLTAGE_SOURCE_PULSE ( p n )
6 v ( p n ) pulse iv=iv pv=pv delay=delay rise=rise fall=fall width=width period=NA( Inf)
7 .ends VOLTAGE_SOURCE_PULSE
8 X1 ( 1 0 ) VOLTAGE_SOURCE_PULSE delay=1n
9 X2 ( 2 0 ) VOLTAGE_SOURCE_PULSE delay=2n
10 X3 ( 3 0 ) VOLTAGE_SOURCE_CONST val=3
11 X4 ( 4 0 ) VOLTAGE_SOURCE_CONST val=4
12 #Time v(1) v(2) v(3) v(4) r(X3.r) r(X4.r) const(X3.r) const(X3.v)
13 0. 0. 0. 3. 4. 3. 4. 1. 0.
14 1.n 0. 0. 3. 4. 3. 4. 1. 0.
15 2.n 1. 0. 3. 4. 3. 4. 1. 0.
16 3.n 1. 1. 3. 4. 3. 4. 1. 0.
17 4.n 1. 1. 3. 4. 3. 4. 1. 0.
18 5.n 1. 1. 3. 4. 3. 4. 1. 0.