attempt better grid alignment for fake cells
[soclayout.git] / experiments9 / pll.py
index 39ea520c1e0313c8791597552316850413ce30d8..ec317551ac0b1b0442f6ab95940edab4233b2136 100644 (file)
@@ -208,11 +208,13 @@ def _load():
 
     lib = Library.create(rootlib, 'pll')
 
+    space = 0.1
+
     cell = Cell.create(lib, 'pll')
     with UpdateSession():
         cell.setAbutmentBox(Box(
             #u(0.0), u(0.0), u(13.5), u(2.025),
-            u(0.0), u(0.0), u(13.5), u(2.5),
+            u(0.0), u(0.0), u(space*100), u(space*25),
         ))
         nets = {
             #'*': Net.create(cell, '*'),
@@ -225,15 +227,15 @@ def _load():
         }
 
         # create series of stepped pins
-        x = 0.135*20
-        wid = 0.135 / 2
-        step = wid*10
+        x = space*20
+        wid = space
+        step = wid*5
         for cname in ['ref', 'div_out_test', 'a0', 'a1', 'vco_test_ana',
                       'out_v']:
             net = nets[cname]
             pin = Vertical.create(
                 net, tech.getLayer('metal1'),
-                u(x), u(wid), u(0), u(3.455),
+                u(x), u(wid), u(0), u(space*15),
             )
             x += step
             net.setExternal(True)