lib = Library.create(rootlib, 'LibreSOCMem')
cell = Cell.create(lib, 'spblock_512w64b8w')
+ space = 0.1
+
with UpdateSession():
cell.setAbutmentBox(Box(
#u(0.0), u(0.0), u(110.025), u(2.025),
- u(0.0), u(0.0), u(110.0), u(2.5),
+ u(0.0), u(0.0), u(space*1000), u(space*25),
))
nets = {
'*': Net.create(cell, '*'),
nets[cname] = Net.create(cell, cname)
# 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 name, qty in (('a', 9),
('d', 64),
('q', 64),
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*25),
)
x += step
net.setExternal(True)
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, '*'),
}
# 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)