Geoffrey_Coram wrote on Aug 8th, 2008, 8:32am:Verilog-A is a hardware description language (HDL) not a measurement description language (MDL), so I'm not sure you really want to do this with Verilog-A.
Verilog-a has functions allows you to do measurement. For example, if you want to measure the delay of an inverter, you can use the cross function to detect the rise of the input signal, assign the time to a variable, say t0. Then you use cross to detect the falling of the output signal, assign the time to a variable t1. The delay is t1-t0.
Kundert described this in his Verilog AMS book chapter 3, section 9 Time interval measurement.
My problem is how to use this method with step function in SPICE. I can use the above function to measure delay with one capacitor load. If I want to step the capacitor load, I wanted to use some code to compute each delay for different load, then at the end, I can do some math for the delays.