Correct renaming/save ordering in cumulus/plugins.chip.Chip.save() (again).

This commit is contained in:
Jean-Paul Chaput 2021-05-11 14:13:00 +02:00
parent 28c8af27be
commit ef8133b1c6
1 changed files with 2 additions and 2 deletions

View File

@ -143,12 +143,12 @@ class Chip ( Block ):
def save ( self, flags=0 ): def save ( self, flags=0 ):
if not self.conf.validated: if not self.conf.validated:
raise ErrorMessage( 1, 'chip.save(): Chip is not valid, aborting.' ) raise ErrorMessage( 1, 'chip.save(): Chip is not valid, aborting.' )
self.conf.corona.setName( self.conf.corona.getName()+'_r' )
self.conf.chip .setName( self.conf.chip .getName()+'_r' )
views = CRL.Catalog.State.Logical views = CRL.Catalog.State.Logical
if self.conf.routingGauge.isSymbolic(): if self.conf.routingGauge.isSymbolic():
views = views | CRL.Catalog.State.Physical views = views | CRL.Catalog.State.Physical
super(Chip,self).save( flags ) super(Chip,self).save( flags )
self.conf.corona.setName( self.conf.corona.getName()+'_r' )
self.conf.chip .setName( self.conf.chip .getName()+'_r' )
af = CRL.AllianceFramework.get() af = CRL.AllianceFramework.get()
af.saveCell( self.conf.corona, views|flags ) af.saveCell( self.conf.corona, views|flags )
af.saveCell( self.conf.chip , views|flags ) af.saveCell( self.conf.chip , views|flags )