diff options
author | Eyantra698Sumanto | 2022-08-26 20:17:41 +0530 |
---|---|---|
committer | Eyantra698Sumanto | 2022-08-26 20:17:41 +0530 |
commit | 600ffa6b9f5a78ac461a21c2d2df9f2aaa14c74b (patch) | |
tree | de3d5a108ba0872c499ef24b6ab7c3f446758582 | |
parent | 381b96af815f619719d490824c23077fb893eff8 (diff) | |
download | eSim-600ffa6b9f5a78ac461a21c2d2df9f2aaa14c74b.tar.gz eSim-600ffa6b9f5a78ac461a21c2d2df9f2aaa14c74b.tar.bz2 eSim-600ffa6b9f5a78ac461a21c2d2df9f2aaa14c74b.zip |
Added more Sky130 Libraries
-rwxr-xr-x | src/kicadtoNgspice/Convert.py | 13 |
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 |