From: Luke Kenneth Casson Leighton Date: Fri, 9 Apr 2021 15:58:58 +0000 (+0000) Subject: whitespace X-Git-Tag: LS180_RC3~154 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7729f4e49e2fcbed5b5f7ddbe5c55a1313701c5d;p=soclayout.git whitespace --- diff --git a/experiments9/tsmc_c018/doDesign.py b/experiments9/tsmc_c018/doDesign.py index b5e259e..041d80b 100644 --- a/experiments9/tsmc_c018/doDesign.py +++ b/experiments9/tsmc_c018/doDesign.py @@ -82,7 +82,9 @@ def doIoPinVector ( ioSpec, bits ): , ioSpec[5].format(bit) , ioSpec[6].format(bit) )) else: - raise ErrorMessage( 1, [ 'doIoPinVector(): Argument "ioSpec" must have between 5 and 7 fields ({})'.format(len(ioSpec)) + raise ErrorMessage( 1, [ 'doIoPinVector(): Argument "ioSpec" ' \ + 'must have between 5 and 7 ' \ + 'fields ({})'.format(len(ioSpec)) , '(ioSpec={})'.format(ioSpec) ] ) return v @@ -201,7 +203,8 @@ def scriptMain (**kw): cell, editor = plugins.kwParseMain( **kw ) cell = af.getCell( 'ls180', CRL.Catalog.State.Logical ) if cell is None: - print( ErrorMessage( 2, 'doDesign.scriptMain(): Unable to load cell "{}".' \ + print( ErrorMessage( 2, 'doDesign.scriptMain(): ' \ + 'Unable to load cell "{}".' \ .format('ls180') )) sys.exit(1) if editor: editor.setCell( cell ) @@ -257,25 +260,24 @@ def scriptMain (**kw): ] sram = DataBase.getDB().getCell( 'SPBlock_512W64B8W' ) if not sram: - raise ErrorMessage( 1, 'SRAM instance "{}" not found.'.format(sramPaths[i]) ) + raise ErrorMessage( 1, 'SRAM instance "{}" ' \ + 'not found.'.format(sramPaths[i]) ) sramAb = sram.getAbutmentBox() coreAb = cell.getAbutmentBox() sliceHeight = chipBuilder.conf.sliceHeight originX = coreAb.getXMin() + 2*chipBuilder.conf.sliceStep for i in range(4): sram = rgetInstance( cell, sramPaths[i] ) - chipBuilder.placeMacro \ - ( sramPaths[i] - , Transformation( originX - , coreAb.getYMax() - sramAb.getHeight() - 2*sliceHeight - , Transformation.Orientation.ID ) - ) + y = coreAb.getYMax() - sramAb.getHeight() - 2*sliceHeight + t = Transformation(originX, y, Transformation.Orientation.ID) + chipBuilder.placeMacro ( sramPaths[i], t ) originX += sramAb.getWidth () + 3*sliceHeight pll = addPllPlaceHolder( cell ) pllAb = pll.getAbutmentBox() - pll.setTransformation( Transformation( coreAb.getXMax() - pllAb.getWidth() - , coreAb.getYMax() - pllAb.getHeight() - , Transformation.Orientation.ID ) ) + t = Transformation( coreAb.getXMax() - pllAb.getWidth() + , coreAb.getYMax() - pllAb.getHeight() + , Transformation.Orientation.ID ) + pll.setTransformation(t) pll.setPlacementStatus( Instance.PlacementStatus.FIXED ) #ls180Conf.placeArea = Box( coreAb.getXMin() # , coreAb.getYMin()