doDesign.py: Disable SRAM placement
authorStaf Verhaegen <staf@stafverhaegen.be>
Mon, 12 Apr 2021 11:24:54 +0000 (13:24 +0200)
committerStaf Verhaegen <staf@stafverhaegen.be>
Mon, 12 Apr 2021 11:25:05 +0000 (13:25 +0200)
experiments9/freepdk_c4m45/doDesign.py

index 6648fe0516eb3768de8dcdfef8d2932095201f5c..87ada2f72c47b6fbf8df115722b080ab86022e58 100644 (file)
@@ -253,33 +253,33 @@ def scriptMain (**kw):
             # Thoses ids are dependent on Yosys. They need to be adjusted
             # whenever the design changes.
             #tiId   = 38695
-            tiId   = 38381
+            tiId   = 38381
             #sramId = 3695
-            sramId = 3300
-            tiPath = 'subckt_{}_test_issuer.subckt_1_ti.'.format(tiId)
-            sramPaths = [ tiPath+'subckt_{}_sram4k_0.subckt_144_SPBlock_512W64B8W'.format(sramId)
-                        , tiPath+'subckt_{}_sram4k_1.subckt_144_SPBlock_512W64B8W'.format(sramId+1)
-                        , tiPath+'subckt_{}_sram4k_2.subckt_144_SPBlock_512W64B8W'.format(sramId+2)
-                        , tiPath+'subckt_{}_sram4k_3.subckt_144_SPBlock_512W64B8W'.format(sramId+3)
-                        ]
-            sram = DataBase.getDB().getCell( 'SPBlock_512W64B8W' )
-            if sram:
-                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] )
-                    y = coreAb.getYMax() - sramAb.getHeight() - 2*sliceHeight
-                    chipBuilder.placeMacro \
-                        ( sramPaths[i]
-                        , Transformation( originX
-                                        , y
-                                        , Transformation.Orientation.ID )
-                        )
-                    originX += sramAb.getWidth () + 3*sliceHeight
-            else:
-                print (ErrorMessage( 1, 'SRAM instance not found.'))
+            sramId = 3300
+            tiPath = 'subckt_{}_test_issuer.subckt_1_ti.'.format(tiId)
+            sramPaths = [ tiPath+'subckt_{}_sram4k_0.subckt_144_SPBlock_512W64B8W'.format(sramId)
+                        , tiPath+'subckt_{}_sram4k_1.subckt_144_SPBlock_512W64B8W'.format(sramId+1)
+                        , tiPath+'subckt_{}_sram4k_2.subckt_144_SPBlock_512W64B8W'.format(sramId+2)
+                        , tiPath+'subckt_{}_sram4k_3.subckt_144_SPBlock_512W64B8W'.format(sramId+3)
+                        ]
+            sram = DataBase.getDB().getCell( 'SPBlock_512W64B8W' )
+            if sram:
+                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] )
+                    y = coreAb.getYMax() - sramAb.getHeight() - 2*sliceHeight
+                    chipBuilder.placeMacro \
+                        ( sramPaths[i]
+                        , Transformation( originX
+                                        , y
+                                        , Transformation.Orientation.ID )
+                        )
+                    originX += sramAb.getWidth () + 3*sliceHeight
+            else:
+                print (ErrorMessage( 1, 'SRAM instance not found.'))
             pll = addPllPlaceHolder( cell )
             pllAb = pll.getAbutmentBox()
             t = Transformation( coreAb.getXMax() - pllAb.getWidth()