Change simulator based on one in use.

This commit is contained in:
mrg 2021-06-09 16:02:32 -07:00
parent c143be12d3
commit 8964abc2b7
1 changed files with 2 additions and 0 deletions

View File

@ -299,6 +299,7 @@ class stimuli():
self.sf.write("* {} process corner\n".format(self.process))
for item in self.device_libraries:
item[0] = item[0].replace("SIMULATOR", OPTS.spice_name.lower())
if os.path.isfile(item[0]):
self.sf.write(".lib \"{0}\" {1}\n".format(item[0], item[1]))
else:
@ -307,6 +308,7 @@ class stimuli():
includes = self.device_models + [circuit]
for item in list(includes):
item = item.replace("SIMULATOR", OPTS.spice_name.lower())
self.sf.write(".include \"{0}\"\n".format(item))
def add_comment(self, msg):