Stop saving AP files when working in real mode.

* Change: In cumulus/plugins.block.configuration.Configuration.save()
    and cumulus/plugins.chip.Chip.save(), according to the kind of
    routing gauge we are using (symbolic or real), either recursively
    save all the layouts (AP symbolic files) or only the top-level
    GDSII (which embed all the hierarchy) one.
This commit is contained in:
Jean-Paul Chaput 2021-05-04 19:31:34 +02:00
parent bb5c99247a
commit 1fb433d9ac
2 changed files with 15 additions and 4 deletions

View File

@ -1237,7 +1237,15 @@ class BlockConf ( GaugeConf ):
cell.setName( cell.getName()+'_cts' )
if self.chip is None:
self.cell.setName( self.cell.getName()+'_r' )
rsave( self.cell, CRL.Catalog.State.Physical|flags )
views = CRL.Catalog.State.Logical
if self.routingGauge.isSymbolic():
views = views | CRL.Catalog.State.Physical
rsave( self.cell, views|flags )
if not self.routingGauge.isSymbolic():
topCell = self.chip
if topCell is None:
topCell = self.cell
CRL.Gds.save( topCell )
return
def toXPitch ( self, x, superior=False ):

View File

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