Manage all devices in karakaze/AnalogDesign.readParameters().
* Change: In Karakaze/analogdesign/AnalogDesign.readParameters(), only Transistor and Capacitors where manageds. So when a devices in the dspec was from another type, it did issue an error. Now cleanly skip unsupported (yet) devices.
This commit is contained in:
parent
b553aae8ad
commit
faef4b182f
|
@ -357,15 +357,7 @@ class AnalogDesign ( object ):
|
||||||
self.parameters.read( path );
|
self.parameters.read( path );
|
||||||
|
|
||||||
for dspec in self.devicesSpecs:
|
for dspec in self.devicesSpecs:
|
||||||
if dspec[0] == MultiCapacitor:
|
if issubclass(dspec[0],TransistorFamily):
|
||||||
Cname = dspec[1]
|
|
||||||
Cparameters = self.parameters.getCapacitor( Cname )
|
|
||||||
if not Cparameters:
|
|
||||||
raise Error( 3, [ 'AnalogDesign.readParameters(): Missing parameters for capacity \"%s\".' % Cname ] )
|
|
||||||
continue
|
|
||||||
dspec[4] = Cparameters.C * 1e+12
|
|
||||||
trace( 110, '\t- \"%s\" : C:%fpF\n' % (Cname ,dspec[4]) )
|
|
||||||
else:
|
|
||||||
Tname = dspec[1].split('_')[0]
|
Tname = dspec[1].split('_')[0]
|
||||||
Tparameters = self.parameters.getTransistor( Tname )
|
Tparameters = self.parameters.getTransistor( Tname )
|
||||||
if not Tparameters:
|
if not Tparameters:
|
||||||
|
@ -378,6 +370,20 @@ class AnalogDesign ( object ):
|
||||||
,dspec[4]
|
,dspec[4]
|
||||||
,dspec[5]
|
,dspec[5]
|
||||||
,dspec[6]) )
|
,dspec[6]) )
|
||||||
|
elif issubclass(dspec[0],CapacitorFamily):
|
||||||
|
Cname = dspec[1]
|
||||||
|
Cparameters = self.parameters.getCapacitor( Cname )
|
||||||
|
if not Cparameters:
|
||||||
|
raise Error( 3, [ 'AnalogDesign.readParameters(): Missing parameters for capacity \"%s\".' % Cname ] )
|
||||||
|
continue
|
||||||
|
dspec[4] = Cparameters.C * 1e+12
|
||||||
|
trace( 110, '\t- \"%s\" : C:%fpF\n' % (Cname ,dspec[4]) )
|
||||||
|
elif issubclass(dspec[0],ResistorFamily):
|
||||||
|
print WarningMessage( 'Resistor devices are not supported yet by Oceane parser (instance:"{}").'.format(dspec[1]) )
|
||||||
|
elif dspec[0] == Cell:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
print WarningMessage( 'Unsupported analog device type {0} (instance:"{1}").'.format(dspec[0],dspec[1]) )
|
||||||
trace( 110, '-,' )
|
trace( 110, '-,' )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue