is there some easier way to find setup and hold time in ngspice rather than just continuously moving data signal with respect to clock signal till we get invalid output,
t
Tim Edwards
02/17/2021, 5:34 PM
Not that I can think of. For efficiency, though, you could set up a big array of devices, each with a different delay in the data signal, so you can quickly hone in on the result.
v
Varun Majji
02/17/2021, 6:18 PM
yeah sir that seems good ,but in hspice i found there is bisection method to find detup time through optimisation,is there method like that ingspice
s
Stefan Schippers
02/17/2021, 10:04 PM
@Varun Majji you can definitely set up a bisection algorithm with ngspice by using a ngspice .control script. However writing ngspice scripts requires considerable time (unless you are already skilled in its script language, i tend to do the same mistakes over and over again) to get it working so i don't know if it is worth doing.
p
Philipp Gühring
02/17/2021, 11:43 PM
Hmm, would it make sense to have a bisection algorithm as a dedicated simulation type with its own command and simple parameters?
Philipp Gühring
02/17/2021, 11:44 PM
So that we could leave it to ngspice to implement it efficiently with bisection, parallelisation, ... whatever is necessary?