* D10.2 pattern generator
.subckt Source_D10_2 out gnd vinpk='vid' tpw='ui' tf='tfall' tr='trise'
vv3  net5 gnd  pwl 
+ 0 0
+ 'tf' 0.0
vv0  out net5  pwl 
+ 0.00000 0
+ 'tr' '+vinpk'
+ '1*tpw' '+vinpk'
+ '1*tpw+tf'  '-vinpk'
+ '2*tpw' '-vinpk'
+ '2*tpw+tr'  '+vinpk'
+ '3*tpw' '+vinpk'
+ '3*tpw+tf'  '-vinpk'
+ '4*tpw' '-vinpk'
+ '4*tpw+tr'  '+vinpk'
+ '5*tpw' '+vinpk'
+ '5*tpw+tf'  '-vinpk'
+ '6*tpw' '-vinpk'
+ '6*tpw+tr'  '+vinpk'
+ '7*tpw' '+vinpk'
+ '7*tpw+tf'  '-vinpk'
+ '8*tpw' '-vinpk'
+ '8*tpw+tr'  '+vinpk'
+ '9*tpw' '+vinpk'
+ '9*tpw+tf'  '-vinpk'
+ '10*tpw' '-vinpk'
+ r
+ TD= 'delay'
.ends Source_D10_2
** End of subcircuit definition.

