summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/kicadtoNgspice/Convert.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py
index 7d68e44e..d27583aa 100755
--- a/src/kicadtoNgspice/Convert.py
+++ b/src/kicadtoNgspice/Convert.py
@@ -552,9 +552,20 @@ class Convert:
elif eachline[0:6] == 'scmode':
tempStr = completeLibPath.split(':')
print(tempStr)
+ libs = '''sky130_fd_pr__model__diode_pd2nw_11v0.model.spice
+sky130_fd_pr__model__diode_pw2nd_11v0.model.spice sky130_fd_pr__model__inductors.model.spice
+sky130_fd_pr__model__linear.model.spice
+sky130_fd_pr__model__pnp.model.spice
+sky130_fd_pr__model__r+c.model.spice
+'''
+
+
+
includeLine.append(
".lib \"" + tempStr[0] + "\" " + tempStr[1])
- deviceLine[index] = '*scmode'
+ for i in libs.split():
+ includeLine.append(".include \"" + tempStr[0].replace("sky130.lib.spice",i) + "\"")
+ deviceLine[index] = "*scmode"
# words.append(completeLibPath)
# deviceLine[index] = words