From 91c87ad61479093335812447318bfa05a7f417fc Mon Sep 17 00:00:00 2001 From: Jock Tanner Date: Mon, 16 Mar 2020 17:46:01 +0000 Subject: [PATCH] Return unused layers. --- experiments7/doAlu16.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/experiments7/doAlu16.py b/experiments7/doAlu16.py index f2c91bd..21bb601 100755 --- a/experiments7/doAlu16.py +++ b/experiments7/doAlu16.py @@ -9,6 +9,7 @@ import Cfg import Etesian import Katana import clocktree.ClockTree +from chip import Configuration from Hurricane import ( DbU, DataBase, UpdateSession, Box, Transformation, Instance, Contact, Vertical, Pad, Pin, NetExternalComponents, @@ -112,10 +113,13 @@ def add(**kwargs): db = DataBase.getDB() print(db, dir(db)) + METAL2 = DataBase.getDB().getTechnology().getLayer('METAL2') METAL3 = DataBase.getDB().getTechnology().getLayer('METAL3') + METAL5 = DataBase.getDB().getTechnology().getLayer('METAL5') BLOCKAGE2 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE2') BLOCKAGE3 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE3') BLOCKAGE4 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE4') + BLOCKAGE5 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE5') cell = af.getCell('add', CRL.Catalog.State.Logical) print(cell.getNet('a(0)')) @@ -221,10 +225,13 @@ def sub(**kwargs): db = DataBase.getDB() print(db, dir(db)) + METAL2 = DataBase.getDB().getTechnology().getLayer('METAL2') METAL3 = DataBase.getDB().getTechnology().getLayer('METAL3') + METAL5 = DataBase.getDB().getTechnology().getLayer('METAL5') BLOCKAGE2 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE2') BLOCKAGE3 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE3') BLOCKAGE4 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE4') + BLOCKAGE5 = DataBase.getDB().getTechnology().getLayer('BLOCKAGE5') cell = af.getCell('sub', CRL.Catalog.State.Logical) print(cell.getNet('a(0)')) @@ -326,9 +333,7 @@ def sub(**kwargs): def alu16(**kwargs): - editor = None - if kwargs.has_key('editor') and kwargs['editor']: - editor = kwargs['editor'] + editor = kwargs.get('editor', None) db = DataBase.getDB() print(db, dir(db)) -- 2.30.2