add fake LibreSOCMem library to freepdk_c4m45
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 30 Apr 2021 12:40:09 +0000 (12:40 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 30 Apr 2021 12:40:09 +0000 (12:40 +0000)
experiments9/freepdk_c4m45/coriolis2/settings.py

index 5988d94da6dc477771e2559fd69b4973ac488ba6..eff8add80951c6269931e90ddff6b02f12218719 100644 (file)
@@ -26,9 +26,13 @@ from   helpers   import overlay, l, u, n
 from   helpers import overlay, l, u, n
 from   NDA.node45.freepdk45_c4m import techno, FlexLib, LibreSOCIO
 
+# "fake" 4k SRAM
+import LibreSOCMem
+
 techno.setup()
 FlexLib.setup()
 LibreSOCIO.setup()
+LibreSOCMem.setup()
 
 
 db = DataBase.getDB()
@@ -47,7 +51,10 @@ def createSramBlackbox ():
                                 'SRAM Cell "{}" not found.' \
                                .format(sramName) )
     sram.setAbstractedSupply( True )
-    blackboxeNames = [ 'spblock_512w64b8w'
+    blackboxeNames = [ 'spblock_512w64b8w_0',
+                       'spblock_512w64b8w_1',
+                       'spblock_512w64b8w_2',
+                       'spblock_512w64b8w_3',
                      ]
     for blackboxName in blackboxeNames:
         cell     = Cell.create( lib, blackboxName )