In ChipPlugin, do not call the editor if it's not there.
This commit is contained in:
parent
e6c809a12a
commit
c26a36db88
|
@ -178,26 +178,26 @@ def ScriptMain ( **kw ):
|
|||
placeCore = PlaceCore( conf )
|
||||
placeCore.validate()
|
||||
placeCore.doFloorplan()
|
||||
editor.fit()
|
||||
if editor: editor.fit()
|
||||
|
||||
placeCore.doPlacement()
|
||||
editor.fit()
|
||||
if editor: editor.fit()
|
||||
|
||||
corePower = chip.BlockPower.Block( conf )
|
||||
corePower.connectPower()
|
||||
corePower.connectClock()
|
||||
corePower.doLayout()
|
||||
editor.fit()
|
||||
if editor: editor.fit()
|
||||
|
||||
coreCorona = chip.BlockCorona.Corona( corePower )
|
||||
coreCorona.connectPads( padsCorona )
|
||||
coreCorona.connectBlock()
|
||||
coreCorona.doLayout()
|
||||
editor.fit()
|
||||
if editor: editor.fit()
|
||||
|
||||
except ErrorMessage, e:
|
||||
print e; errorCode = e.code
|
||||
editor.fit()
|
||||
if editor: editor.fit()
|
||||
except Exception, e:
|
||||
print '\n\n', e; errorCode = 1
|
||||
traceback.print_tb(sys.exc_info()[2])
|
||||
|
|
|
@ -559,8 +559,8 @@ class ChipConfWrapper ( GaugeConfWrapper ):
|
|||
def __init__ ( self, gaugeConf, chipConf ):
|
||||
GaugeConfWrapper.__init__( self, gaugeConf )
|
||||
|
||||
if not isinstance(chipConf,ChipConf):
|
||||
raise ErrorMessage( 1, 'Attempt to create a ChipConfWrapper() from non-ChipConf object.' )
|
||||
#if not isinstance(chipConf,ChipConf):
|
||||
# raise ErrorMessage( 1, 'Attempt to create a ChipConfWrapper() from non-ChipConf object.' )
|
||||
self._chipConf = chipConf
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue