mirror of https://github.com/VLSIDA/OpenRAM.git
Only replace simulator if it is defined.
This commit is contained in:
parent
1adada9e27
commit
6ac082ce23
|
|
@ -299,7 +299,8 @@ class stimuli():
|
||||||
|
|
||||||
self.sf.write("* {} process corner\n".format(self.process))
|
self.sf.write("* {} process corner\n".format(self.process))
|
||||||
for item in self.device_libraries:
|
for item in self.device_libraries:
|
||||||
item[0] = item[0].replace("SIMULATOR", OPTS.spice_name.lower())
|
if OPTS.spice_name:
|
||||||
|
item[0] = item[0].replace("SIMULATOR", OPTS.spice_name.lower())
|
||||||
if os.path.isfile(item[0]):
|
if os.path.isfile(item[0]):
|
||||||
self.sf.write(".lib \"{0}\" {1}\n".format(item[0], item[1]))
|
self.sf.write(".lib \"{0}\" {1}\n".format(item[0], item[1]))
|
||||||
else:
|
else:
|
||||||
|
|
@ -308,7 +309,8 @@ class stimuli():
|
||||||
includes = self.device_models + [circuit]
|
includes = self.device_models + [circuit]
|
||||||
|
|
||||||
for item in list(includes):
|
for item in list(includes):
|
||||||
item = item.replace("SIMULATOR", OPTS.spice_name.lower())
|
if OPTS.spice_name:
|
||||||
|
item = item.replace("SIMULATOR", OPTS.spice_name.lower())
|
||||||
self.sf.write(".include \"{0}\"\n".format(item))
|
self.sf.write(".include \"{0}\"\n".format(item))
|
||||||
|
|
||||||
def add_comment(self, msg):
|
def add_comment(self, msg):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue