mirror of https://github.com/VLSIDA/OpenRAM.git
Simplify supply code.
This commit is contained in:
parent
9e8b03d6c2
commit
82496a66fe
|
|
@ -104,8 +104,6 @@ class write_mask_and_array(design.design):
|
||||||
|
|
||||||
|
|
||||||
def add_layout_pins(self):
|
def add_layout_pins(self):
|
||||||
self.nand2 = factory.create(module_type="pnand2")
|
|
||||||
supply_pin=self.nand2.get_pin("vdd")
|
|
||||||
|
|
||||||
# Create the enable pin that connects all write mask AND array's B pins
|
# Create the enable pin that connects all write mask AND array's B pins
|
||||||
beg_en_pin = self.and2_insts[0].get_pin("B")
|
beg_en_pin = self.and2_insts[0].get_pin("B")
|
||||||
|
|
@ -139,14 +137,15 @@ class write_mask_and_array(design.design):
|
||||||
self.add_via_center(layers=self.m2_stack,
|
self.add_via_center(layers=self.m2_stack,
|
||||||
offset=en_pin.center())
|
offset=en_pin.center())
|
||||||
|
|
||||||
self.add_power_pin("gnd", vector(supply_pin.width() + i * self.wmask_en_len, 0))
|
for supply in ["gnd", "vdd"]:
|
||||||
self.add_power_pin("vdd", vector(supply_pin.width() + i * self.wmask_en_len, self.height))
|
supply_pin=self.and2_insts[i].get_pin(supply)
|
||||||
# Route power and ground rails together
|
self.add_power_pin(supply, supply_pin.rc())
|
||||||
if i < self.num_wmasks-1:
|
|
||||||
for n in ["gnd","vdd"]:
|
|
||||||
pin = self.and2_insts[i].get_pin(n)
|
for supply in ["gnd", "vdd"]:
|
||||||
next_pin = self.and2_insts[i+1].get_pin(n)
|
supply_pin_left = self.and2_insts[0].get_pin(supply)
|
||||||
self.add_path("m1",[pin.center(),next_pin.center()])
|
supply_pin_right = self.and2_insts[self.num_wmasks-1].get_pin(supply)
|
||||||
|
self.add_path("m1",[supply_pin_left.lc(), supply_pin_right.rc()])
|
||||||
|
|
||||||
def get_cin(self):
|
def get_cin(self):
|
||||||
"""Get the relative capacitance of all the input connections in the bank"""
|
"""Get the relative capacitance of all the input connections in the bank"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue