mirror of https://github.com/VLSIDA/OpenRAM.git
Add vdd/gnd pins to dff_array
This commit is contained in:
parent
6133d54684
commit
ef60b02a81
|
|
@ -92,21 +92,14 @@ class dff_array(design.design):
|
||||||
|
|
||||||
def add_layout_pins(self):
|
def add_layout_pins(self):
|
||||||
for row in range(self.rows):
|
for row in range(self.rows):
|
||||||
|
for col in range(self.columns):
|
||||||
# Continous vdd rail along with label.
|
# Continous vdd rail along with label.
|
||||||
vdd_pin=self.dff_insts[row,0].get_pin("vdd")
|
vdd_pin=self.dff_insts[row,col].get_pin("vdd")
|
||||||
self.add_layout_pin(text="vdd",
|
self.add_power_pin("vdd", vdd_pin.lc())
|
||||||
layer="metal1",
|
|
||||||
offset=vdd_pin.ll(),
|
|
||||||
width=self.width,
|
|
||||||
height=self.m1_width)
|
|
||||||
|
|
||||||
# Continous gnd rail along with label.
|
# Continous gnd rail along with label.
|
||||||
gnd_pin=self.dff_insts[row,0].get_pin("gnd")
|
gnd_pin=self.dff_insts[row,col].get_pin("gnd")
|
||||||
self.add_layout_pin(text="gnd",
|
self.add_power_pin("gnd", gnd_pin.lc())
|
||||||
layer="metal1",
|
|
||||||
offset=gnd_pin.ll(),
|
|
||||||
width=self.width,
|
|
||||||
height=self.m1_width)
|
|
||||||
|
|
||||||
|
|
||||||
for row in range(self.rows):
|
for row in range(self.rows):
|
||||||
|
|
@ -141,7 +134,7 @@ class dff_array(design.design):
|
||||||
else:
|
else:
|
||||||
self.add_layout_pin(text="clk",
|
self.add_layout_pin(text="clk",
|
||||||
layer="metal3",
|
layer="metal3",
|
||||||
offset=vector(0,0),
|
offset=vector(0,self.m3_pitch),
|
||||||
width=self.width,
|
width=self.width,
|
||||||
height=self.m3_width)
|
height=self.m3_width)
|
||||||
for col in range(self.columns):
|
for col in range(self.columns):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue