I try to do transient simulation and also want to sweep the time of the input signal. Try to analyze the output waveform versus the input vin's delay time(td).
The following is my code. But I got two probelms. 1) by using .param t1=1ns and vin, I can not get the correct input waveform. By this way, I only can get vin=0V. 2) how to sweep td in the .tran?
.param td=1ns
....
vin in 0 pwl 0ns 0 td 0 'td+0.1ns' 2.5 10ns 2.5
....
.tran 0.001ns 10ns sweep td 1ns 10ns 1ns