add vss/vdd as pins, gets the net into the VST
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 5 Jun 2021 17:45:00 +0000 (17:45 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 5 Jun 2021 17:45:00 +0000 (17:45 +0000)
experiments10_verilog/pll.py
experiments9/pll.py

index 07a89a981b7e4cbf4cc42e90c22a825e53c34e40..d485d5681907a8f56f4b15448b84ccdca54b80fe 100644 (file)
@@ -214,7 +214,7 @@ def _load():
     with UpdateSession():
         cell.setAbutmentBox(Box(
             #u(0.0), u(0.0), u(13.5), u(2.025),
-            u(0.0), u(0.0), u(space*100), u(space*25),
+            u(0.0), u(0.0), u(space*125), u(space*25),
         ))
         nets = {
             #'*': Net.create(cell, '*'),
@@ -238,14 +238,16 @@ def _load():
         nets['vco_test_ana'].setDirection( Net.Direction.OUT )
         nets['out_v'].setDirection( Net.Direction.OUT )
         nets['vdd'].setType( Net.Type.POWER )
+        nets['vdd'].setDirection( Net.Direction.IN )
         nets['vss'].setType( Net.Type.GROUND )
+        nets['vss'].setDirection( Net.Direction.IN )
 
         # create series of stepped pins
         x = space*20
         wid = space
         step = wid*5
         for cname in ['ref_v', 'div_out_test', 'a0', 'a1', 'vco_test_ana',
-                      'out_v']:
+                      'out_v', 'vdd', 'vss']:
             net = nets[cname]
             pin = Vertical.create(
                 net, tech.getLayer('metal1'),
index 07a89a981b7e4cbf4cc42e90c22a825e53c34e40..d485d5681907a8f56f4b15448b84ccdca54b80fe 100644 (file)
@@ -214,7 +214,7 @@ def _load():
     with UpdateSession():
         cell.setAbutmentBox(Box(
             #u(0.0), u(0.0), u(13.5), u(2.025),
-            u(0.0), u(0.0), u(space*100), u(space*25),
+            u(0.0), u(0.0), u(space*125), u(space*25),
         ))
         nets = {
             #'*': Net.create(cell, '*'),
@@ -238,14 +238,16 @@ def _load():
         nets['vco_test_ana'].setDirection( Net.Direction.OUT )
         nets['out_v'].setDirection( Net.Direction.OUT )
         nets['vdd'].setType( Net.Type.POWER )
+        nets['vdd'].setDirection( Net.Direction.IN )
         nets['vss'].setType( Net.Type.GROUND )
+        nets['vss'].setDirection( Net.Direction.IN )
 
         # create series of stepped pins
         x = space*20
         wid = space
         step = wid*5
         for cname in ['ref_v', 'div_out_test', 'a0', 'a1', 'vco_test_ana',
-                      'out_v']:
+                      'out_v', 'vdd', 'vss']:
             net = nets[cname]
             pin = Vertical.create(
                 net, tech.getLayer('metal1'),