diff options
author | fahim-oscad | 2016-04-22 12:33:43 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-22 12:33:43 +0530 |
commit | e70346be5682964b5e24463267609b0f32decd19 (patch) | |
tree | 1e2416016adcdbf23c6cd87eca52ffaf97e44637 /src/ngspicetoModelica | |
parent | 5f6efbb2f906457d0982188068e3359f723988d0 (diff) | |
download | eSim-e70346be5682964b5e24463267609b0f32decd19.tar.gz eSim-e70346be5682964b5e24463267609b0f32decd19.tar.bz2 eSim-e70346be5682964b5e24463267609b0f32decd19.zip |
Modified again for transistor
Diffstat (limited to 'src/ngspicetoModelica')
-rw-r--r-- | src/ngspicetoModelica/NgspicetoModelica.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py index 2d608402..00a33604 100644 --- a/src/ngspicetoModelica/NgspicetoModelica.py +++ b/src/ngspicetoModelica/NgspicetoModelica.py @@ -111,6 +111,7 @@ class NgMoConverter: templine = eachline[0].split() trans = templine[1] transInfo[trans] = [] + templine[2] = templine[2].lower() if templine[2] in ['npn', 'pnp', 'pmos', 'nmos']: transInfo[trans] = templine[2] else: @@ -143,7 +144,8 @@ class NgMoConverter: newdata = data.split('(') templine_f = newdata[0].split() trans_f = templine_f[1] - transInfo[trans_f] = [] + transInfo[trans_f] = [] + templine_f[2] = templine_f[2].lower() if templine_f[2] in ['npn', 'pnp', 'pmos', 'nmos']: transInfo[trans_f] = templine_f[2] @@ -329,6 +331,8 @@ class NgMoConverter: elif eachline[0]=='q' or eachline[0]=='Q': trans = transInfo[words[4]] + print "Trans---------->",trans + print "TransInfo---------->",transInfo if trans == 'npn': start = 'Analog.Semiconductors.NPN ' else: |