No control statements in ngspice 26

This commit is contained in:
Matt Guthaus 2016-11-11 13:09:46 -08:00
parent b9ad65c1de
commit 33b46b450d
1 changed files with 9 additions and 8 deletions

View File

@ -170,16 +170,17 @@ class setup_hold():
if OPTS.spice_version == "hspice":
self.sf.write(".probe V(*)\n")
# end the stimulus file
self.sf.write(".end\n")
else:
self.sf.write(".control\n")
self.sf.write("run\n")
self.sf.write("* plot clk_buf data_buf doutrun\n")
self.sf.write("quit\n")
self.sf.write(".endc\n")
self.sf.write(".end\n")
pass
# This is only needed for ngspice <26
# self.sf.write(".control\n")
# self.sf.write("run\n")
# self.sf.write("* plot clk_buf data_buf doutrun\n")
# self.sf.write("quit\n")
# self.sf.write(".endc\n")
# end the stimulus file
self.sf.write(".end\n")
def bidir_search(self, correct_value, noise_margin, measure_name, mode):
""" This will perform a bidirectional search for either setup or hold times.