Ensure that there is at least one free GCell on each side of the corona.

* Change: In Cumulus/plugins/chip/PadsCorona, if the external pins of
    the corona are in GCells that are also under the core block ring
    power lines, they are flagged as "go straight" and this produce
    impossible configurations for the router to solve. Now we ensure
    that there is one free GCell all around the corona border.
* Bug: In Cumulus/plugins/chip/Configuration.py & PadsCorona.py,
    at the begin/end of a side of pad, connectors can be outside the
    corona range (i.e. not directly face to face). Now make a dogleg
    if needed. This is a work in progress as if there are two of them,
    they will short on the perpandicular part. We must compute a
    shift.
This commit is contained in:
Jean-Paul Chaput 2019-08-12 01:11:58 +02:00
parent 1b2c90424a
commit 4b9a6ec4a9
3 changed files with 48 additions and 17 deletions

View File

@ -117,9 +117,31 @@ class PlaceRoute ( object ):
raise ErrorMessage( 1, 'chip.doCoronaFloorplan(): Chip is not valid, aborting.' )
return
railsNb = Cfg.getParamInt('chip.block.rails.count' ).asInt()
hRailWidth = Cfg.getParamInt('chip.block.rails.hWidth' ).asInt()
vRailWidth = Cfg.getParamInt('chip.block.rails.vWidth' ).asInt()
hRailSpace = Cfg.getParamInt('chip.block.rails.hSpacing').asInt()
vRailSpace = Cfg.getParamInt('chip.block.rails.vSpacing').asInt()
if not self.conf.useClockTree: self.railsNb -= 1
innerBb = Box( self.conf.coreSize )
innerBb.inflate( (railsNb * vRailWidth + (railsNb+1) * vRailSpace + self.conf.getSliceHeight()) * 2
, (railsNb * hRailWidth + (railsNb+1) * hRailSpace + self.conf.getSliceHeight()) * 2 )
coronaAb = self.conf.corona.getAbutmentBox()
if innerBb.getWidth() > coronaAb.getWidth():
raise ErrorMessage( 1, 'Core is too wide to fit into the corona, needs %s but only has %s.'
% ( DbU.getValueString(innerBb .getWidth())
, DbU.getValueString(coronaAb.getWidth()) ) )
if innerBb.getHeight() > coronaAb.getHeight():
raise ErrorMessage( 1, 'Core is too tall to fit into the corona, needs %s but only has %s.'
% ( DbU.getValueString(innerBb .getHeight())
, DbU.getValueString(coronaAb.getHeight()) ) )
UpdateSession.open()
self.conf.core.setAbutmentBox( self.conf.coreSize )
coronaAb = self.conf.corona.getAbutmentBox()
x = (coronaAb.getWidth () - self.conf.coreSize.getWidth ()) / 2
y = (coronaAb.getHeight() - self.conf.coreSize.getHeight()) / 2
x = x - (x % self.conf.getSliceHeight())

View File

@ -697,6 +697,15 @@ class ChipConf ( object ):
abMin = ab.getXMin()
abMax = ab.getXMax()
if uMin <= abMin:
shiftRight = abMin - uMin + lg.getPitch()
uMin += shiftRight
uMax += shiftRight
if uMax >= abMax:
shiftLeft = uMax - abMax + lg.getPitch()
uMin -= shiftLeft
uMax -= shiftLeft
iTrackMin = lg.getTrackIndex( abMin, abMax, uMin, RoutingLayerGauge.Superior )
iTrackMax = lg.getTrackIndex( abMin, abMax, uMax, RoutingLayerGauge.Inferior )
if iTrackMax < iTrackMin: iTrackMax = iTrackMin