summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEyantra698Sumanto2022-08-06 01:29:03 +0530
committerEyantra698Sumanto2022-08-06 01:29:03 +0530
commitf793fbe6270a972ce5480633fb172995702b3bd1 (patch)
tree498498122a2178bee6010f3d06a94d4662321b04 /src
parentfb243006381b7fdb88709fb3fcc7c845e2475b16 (diff)
downloadeSim-f793fbe6270a972ce5480633fb172995702b3bd1.tar.gz
eSim-f793fbe6270a972ce5480633fb172995702b3bd1.tar.bz2
eSim-f793fbe6270a972ce5480633fb172995702b3bd1.zip
Added include library and designator commands for Sky130_fd_pr PDK components
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--]src/kicadtoNgspice/Convert.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py
index 24449a3b..31d48f8b 100644..100755
--- a/src/kicadtoNgspice/Convert.py
+++ b/src/kicadtoNgspice/Convert.py
@@ -525,6 +525,7 @@ class Convert:
# print("Library Path :", libpath)
# Copying library from devicemodelLibrary to Project Path
# Special case for MOSFET
+ print(eachline[0:5] )
if eachline[0] == 'm':
# For mosfet library name come along with MOSFET
# dimension information
@@ -547,6 +548,21 @@ class Convert:
src = os.path.join(src_path, src_lib)
dst = projpath
shutil.copy2(src, dst)
+
+ elif eachline[0:6] == 'scmode':
+ tempStr = completeLibPath.split(':')
+ print(tempStr)
+ includeLine.append(".lib \"" + tempStr[0] + "\" " + tempStr[1])
+ deviceLine[index] = ''
+ #words.append(completeLibPath)
+ #deviceLine[index] = words
+
+ elif eachline[0:2] == 'sc' and eachline[0:6] != 'scmode':
+ temp_str = words[0].replace('sc','xsc')
+ words[0] = temp_str
+ words.append(completeLibPath)
+ deviceLine[index] = words
+
else:
# Replace last word with library name
# words[-1] = libname.split('.')[0]