add coriolis_setup, fix subckt numbering
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Aug 2020 13:55:28 +0000 (13:55 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Aug 2020 13:55:28 +0000 (13:55 +0000)
experiments9/doDesign.py

index 06ea57a2ec44c48887b6233710f9f452ebabc43a..797dd40d389cdc9df363304f3f9834a70666f0b2 100644 (file)
@@ -3,6 +3,7 @@ from   __future__ import print_function
 import sys
 import traceback
 import CRL
+import Cfg
 import helpers
 from   helpers.io import ErrorMessage
 from   helpers.io import WarningMessage
@@ -13,11 +14,39 @@ from   Hurricane  import Pin
 from   Hurricane  import Transformation
 from   plugins.alpha.block.block         import Block
 from   plugins.alpha.block.configuration import IoPin
+from utils import Module, SessionManager, Config
 
 
 af = CRL.AllianceFramework.get()
 
 
+def coriolis_setup():
+    with Config(Cfg.Parameter.Priority.UserFile) as cfg:
+        cfg.misc_catchCore = False
+        cfg.misc_info = False
+        cfg.misc_paranoid = False
+        cfg.misc_bug = False
+        cfg.misc_logMode = True
+        cfg.misc_verboseLevel1 = True
+        cfg.misc_verboseLevel2 = True
+        cfg.etesian_effort = 2
+        cfg.etesian_spaceMargin = "10.0%"
+        cfg.etesian_aspectRatio = "100.0%"
+        cfg.etesian_uniformDensity = True
+        cfg.anabatic_edgeLenght = 24
+        cfg.anabatic_edgeWidth = 8
+        cfg.anabatic_topRoutingLayer = 'METAL5'
+        cfg.katana_searchHalo = 30
+        cfg.katana_eventsLimit = 1000000
+        cfg.katana_hTracksReservedLocal = 7
+        cfg.katana_vTracksReservedLocal = 6
+
+        env = af.getEnvironment()
+        env.setCLOCK('^clk$|m_clock')
+        env.setPOWER('vdd')
+        env.setGROUND('vss')
+
+
 def scriptMain ( **kw ):
     """The mandatory function that Coriolis CGT/Unicorn will look for."""
     global af
@@ -609,19 +638,19 @@ def scriptMain ( **kw ):
                     Transformation( l(23250), l(4000),
                         Transformation.Orientation.ID ))
         blockIssuer.useBlockInstance(
-                    'subckt_1150_core.subckt_2227_fus.subckt_0_trap0' ,
+                    'subckt_1150_core.subckt_2227_fus.subckt_9_trap0' ,
                     Transformation( l(25300), l(4000),
                         Transformation.Orientation.ID ))
         blockIssuer.useBlockInstance(
-                    'subckt_1150_core.subckt_2030_fast' ,
+                    'subckt_1150_core.subckt_2226_fast' ,
                     Transformation( l(1000), l(4000),
                         Transformation.Orientation.ID ))
         blockIssuer.useBlockInstance(
-                    'subckt_1150_core.subckt_2032_int' ,
+                    'subckt_1150_core.subckt_2228_int' ,
                     Transformation( l(1000), l(4000),
                         Transformation.Orientation.ID ))
         blockIssuer.useBlockInstance(
-                    'subckt_1150_core.subckt_2034_pdecode2' ,
+                    'subckt_1150_core.subckt_2230_pdecode2' ,
                     Transformation( l(1000), l(4000),
                         Transformation.Orientation.ID ))
 
@@ -645,6 +674,7 @@ def scriptMain ( **kw ):
 
 
 if __name__ == '__main__':
+    coriolis_setup()
     kwargs = {}
     success = scriptMain(**kwargs)
     shellSuccess = 0