whitespace
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Apr 2021 15:58:58 +0000 (15:58 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Apr 2021 15:58:58 +0000 (15:58 +0000)
experiments9/tsmc_c018/doDesign.py

index b5e259e315dbc3ca2a05c77a707cb4e8a7b6c5c8..041d80bd5a1870f924b4006fea78278dea0f32d3 100644 (file)
@@ -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()