From f793fbe6270a972ce5480633fb172995702b3bd1 Mon Sep 17 00:00:00 2001 From: Eyantra698Sumanto Date: Sat, 6 Aug 2022 01:29:03 +0530 Subject: Added include library and designator commands for Sky130_fd_pr PDK components --- src/kicadtoNgspice/Convert.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) mode change 100644 => 100755 src/kicadtoNgspice/Convert.py diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py old mode 100644 new mode 100755 index 24449a3b..31d48f8b --- 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] -- cgit