From 9d61b3478c222003659c8ae924aa6d79fbfe4d2d Mon Sep 17 00:00:00 2001 From: ambikeshwar1991 Date: Fri, 27 Jun 2014 12:26:27 +0530 Subject: JFET model added in KicadtoNgspice --- OSCAD/kicadtoNgspice/KicadtoNgspice.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/OSCAD/kicadtoNgspice/KicadtoNgspice.py b/OSCAD/kicadtoNgspice/KicadtoNgspice.py index bc96147..a3d443a 100755 --- a/OSCAD/kicadtoNgspice/KicadtoNgspice.py +++ b/OSCAD/kicadtoNgspice/KicadtoNgspice.py @@ -1392,7 +1392,15 @@ for eachline in schematicInfo: schematicInfo.insert(index,words[0]+" "+words[1]+" "+words[2]+" "+words[3]+" "+words[3]+" "+words[4]+" "+'M='+multiplicative_factor+" "+'L='+length+" "+'W='+width+" "+'PD='+str(PD)+" "+'PS='+str(PS)+" "+'AD='+str(AD)+" "+'AS='+str(AS)) if modelName in modelList: continue - modelList.append(modelName) + modelList.append(modelName) + elif eachline[0]=='j': + modelName=words[4] + index=schematicInfo.index(eachline) + schematicInfo.remove(eachline) + schematicInfo.insert(index,words[0]+" "+words[1]+" "+words[2]+" "+words[3]+" "+words[4]) + if modelName in modelList: + continue + modelList.append(modelName) elif eachline[0]=='x': subcktName=words[len(words)-1] if subcktName in subcktList: -- cgit