From 4f3fce32074946c452fe9089cec271a6d5843e59 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 5 Jun 2021 17:45:00 +0000 Subject: [PATCH] add vss/vdd as pins, gets the net into the VST --- experiments10_verilog/pll.py | 6 ++++-- experiments9/pll.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/experiments10_verilog/pll.py b/experiments10_verilog/pll.py index 07a89a9..d485d56 100644 --- a/experiments10_verilog/pll.py +++ b/experiments10_verilog/pll.py @@ -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'), diff --git a/experiments9/pll.py b/experiments9/pll.py index 07a89a9..d485d56 100644 --- a/experiments9/pll.py +++ b/experiments9/pll.py @@ -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'), -- 2.30.2