summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfahimkhan2016-03-09 15:21:48 +0530
committerfahimkhan2016-03-09 15:21:48 +0530
commit1e548a07da04646202ee20673e6a4470ee063708 (patch)
tree12df1a4fedb06cce0a1e1d6c8988b6cdd06b5c38 /src
parent7d128c3c55862bd3c2098ab2b0d90f599dad9195 (diff)
downloadeSim-1e548a07da04646202ee20673e6a4470ee063708.tar.gz
eSim-1e548a07da04646202ee20673e6a4470ee063708.tar.bz2
eSim-1e548a07da04646202ee20673e6a4470ee063708.zip
Remove lower case function as it is not required
Diffstat (limited to 'src')
-rw-r--r--src/ngspicetoModelica/NgspicetoModelica.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/ngspicetoModelica/NgspicetoModelica.py b/src/ngspicetoModelica/NgspicetoModelica.py
index 95f991bd..95a93b36 100644
--- a/src/ngspicetoModelica/NgspicetoModelica.py
+++ b/src/ngspicetoModelica/NgspicetoModelica.py
@@ -40,9 +40,13 @@ class NgMoConverter:
if eachline[0]=='*':
continue
elif eachline[0]=='.':
- optionInfo.append(eachline.lower())
+ optionInfo.append(eachline)
+ ##No need of making it lower case as netlist is already converted to ngspice
+ #optionInfo.append(eachline.lower())
else:
- schematicInfo.append(eachline.lower())
+ schematicInfo.append(eachline)
+ ##No need of making it lower case as netlist is already converted to ngspice
+ #schematicInfo.append(eachline.lower())
return optionInfo,schematicInfo
def addModel(self,optionInfo):
@@ -104,7 +108,7 @@ class NgMoConverter:
for eachitem in info:
modelInfo[eachmodel][info[0]] = info[1] #dic within a dic
#modelInfo[eachmodel] = modelInfo[eachmodel].split()
- # modelInfo[eachmodel] = modelInfo[eachmodel].lower()
+ #modelInfo[eachmodel] = modelInfo[eachmodel].lower()
f.close()
@@ -168,7 +172,6 @@ class NgMoConverter:
"""
print "Val------------->",val
for i in range(0,len(val),1):
- print "Val[i]----------------->",val[i]
if val[i] in ['k','u','p','t','g','m','n','f']:
newval = val.split(val[i])
print "new Value------------>",newval
@@ -672,22 +675,22 @@ def main(args):
#Getting all the require information
lines = obj_NgMoConverter.readNetlist(filename)
#print "Complete Lines of Ngspice netlist :lines ---------------->",lines
- optionInfo, schematicInfo=obj_NgMoConverter.separateNetlistInfo(lines)
+ optionInfo, schematicInfo = obj_NgMoConverter.separateNetlistInfo(lines)
#print "All option details like analysis,subckt,.ic,.model : OptionInfo------------------->",optionInfo
#print "Schematic connection info :schematicInfo",schematicInfo
modelName, modelInfo, subcktName, paramInfo, inbuiltmodelName, inbuiltmodelInfo = obj_NgMoConverter.addModel(optionInfo)
print "Name of Model : modelName-------------------->",modelName
print "Model Information :modelInfo--------------------->",modelInfo
- print "Subcircuit Name :subcktName------------------------>",subcktName
- print "Parameter Information :paramInfo---------------------->",paramInfo
- print "Ngspice inbuiltmodelName :inbuiltmodelName---------------------->",inbuiltmodelName
- print "Ngspice inbuiltmodelInfo :inbuiltmodelInfo----------------------->",inbuiltmodelInfo
+ #print "Subcircuit Name :subcktName------------------------>",subcktName
+ #print "Parameter Information :paramInfo---------------------->",paramInfo
+ #print "Ngspice inbuiltmodelName :inbuiltmodelName---------------------->",inbuiltmodelName
+ #print "Ngspice inbuiltmodelInfo :inbuiltmodelInfo----------------------->",inbuiltmodelInfo
modelicaParamInit = obj_NgMoConverter.processParam(paramInfo)
#print "Make modelicaParamInit from paramInfo :processParamInit------------->",modelicaParamInit
compInfo, plotInfo = obj_NgMoConverter.separatePlot(schematicInfo)
- #print "Info like run etc : CompInfo----------------->",compInfo
+ print "Info like run etc : CompInfo----------------->",compInfo
#print "Plot info like plot,print etc :plotInfo",plotInfo
IfMOS = '0'