Skip to content

Commit ec49cf2

Browse files
committed
[WIP]Use PDKMaster support code for converting C4M libs to Hurricane
Done for StdCellLib and StdCell3V3Lib. This package now depends on PDKMaster and c4m-pdk-ihpsg13g2 packages. TODO: should depend on release version of PDKMaster and c4m-pdk-ihpsg13g2 before merging into main
1 parent 8b79315 commit ec49cf2

File tree

5 files changed

+47
-35183
lines changed

5 files changed

+47
-35183
lines changed

libs.tech/coriolis/ihpsg13g2/StdCell3V3Lib.py

+17-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
from coriolis.helpers.technology import setEnclosures
1414
from coriolis.helpers.overlay import CfgCache, UpdateSession
1515

16+
from .arrakeen import c4m_ihpsg13g2, c4m_tech, c4m_export
17+
18+
1619
__all__ = ["setup"]
1720

21+
1822
def createRL(tech, net, layer, coords):
1923
coords = [Point(u(x), u(y)) for x,y in coords]
2024
Rectilinear.create(net, tech.getLayer(layer), coords)
@@ -39070,7 +39074,19 @@ def _load():
3907039074
return lib
3907139075

3907239076
def setup():
39073-
lib = _load()
39077+
from c4m.flexcell import coriolis_export_spec
39078+
39079+
af = CRL.AllianceFramework.get()
39080+
db = DataBase.getDB()
39081+
tech = db.getTechnology()
39082+
rootlib = db.getRootLibrary()
39083+
39084+
lib = c4m_export.library2library(
39085+
lib=c4m_ihpsg13g2.stdcell3v3lib,
39086+
pin_prim=c4m_tech.primitives["Metal1"], pin_dir="vertical",
39087+
excl_cells=("Gallery",), spec=coriolis_export_spec,
39088+
hurtech=tech, hurrootlib=rootlib,
39089+
)
3907439090
_routing()
3907539091

3907639092
spiceDir = Path(__file__).parent / 'libs.ref' / 'StdCell3V3Lib' / 'spice'

0 commit comments

Comments
 (0)