summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorambikeshwar19912014-06-27 12:26:27 +0530
committerambikeshwar19912014-06-27 12:26:27 +0530
commit9d61b3478c222003659c8ae924aa6d79fbfe4d2d (patch)
treeebe5c1f79221f37fd241ca4660c3bbb0ca535962
parent101792041b1374d3775542ba6c80b24f8588ecc5 (diff)
downloadFreeEDA-9d61b3478c222003659c8ae924aa6d79fbfe4d2d.tar.gz
FreeEDA-9d61b3478c222003659c8ae924aa6d79fbfe4d2d.tar.bz2
FreeEDA-9d61b3478c222003659c8ae924aa6d79fbfe4d2d.zip
JFET model added in KicadtoNgspice
-rwxr-xr-xOSCAD/kicadtoNgspice/KicadtoNgspice.py10
1 files changed, 9 insertions, 1 deletions
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: