mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 09:30:38 +02:00
Created wmask AND array en pin to go through to top layer.
This commit is contained in:
@@ -545,7 +545,6 @@ class port_data(design.design):
|
||||
self.add_path("metal2", [wdriver_sel_out_pin.center(), wdriver_sel_in_pin.center()])
|
||||
|
||||
|
||||
|
||||
def route_bitline_pins(self):
|
||||
""" Add the bitline pins for the given port """
|
||||
|
||||
@@ -582,9 +581,9 @@ class port_data(design.design):
|
||||
if self.write_driver_array_inst:
|
||||
if self.write_mask_and_array_inst:
|
||||
for bit in range(self.num_wmasks):
|
||||
wdriver_en_pin = self.write_driver_array_inst.get_pin("en_{}".format(bit))
|
||||
self.copy_layout_pin(self.write_driver_array_inst, "en_{}".format(bit), "wdriver_sel_{}".format(bit))
|
||||
|
||||
# self.copy_layout_pin(self.write_driver_array_inst, "en_{}".format(bit), "wdriver_sel_{}".format(bit))
|
||||
wdriver_en_pin = self.write_driver_array_inst.get_pin("en_{}".format(bit))
|
||||
self.add_via_center(layers=("metal1", "via1", "metal2"),
|
||||
offset=wdriver_en_pin.center())
|
||||
self.add_layout_pin_rect_center(text="wdriver_sel_{0}".format(bit),
|
||||
@@ -594,6 +593,7 @@ class port_data(design.design):
|
||||
self.copy_layout_pin(self.write_driver_array_inst, "en", "w_en")
|
||||
if self.write_mask_and_array_inst:
|
||||
self.copy_layout_pin(self.write_mask_and_array_inst, "en", "w_en")
|
||||
|
||||
|
||||
|
||||
def channel_route_bitlines(self, inst1, inst2, num_bits,
|
||||
|
||||
@@ -51,7 +51,7 @@ class write_mask_and_array(design.design):
|
||||
|
||||
self.place_and2_array()
|
||||
self.add_layout_pins()
|
||||
self.route_enable()
|
||||
# self.route_enable()
|
||||
self.add_boundary()
|
||||
self.DRC_LVS()
|
||||
|
||||
@@ -121,9 +121,12 @@ class write_mask_and_array(design.design):
|
||||
offset=en_pin.center())
|
||||
self.add_via_center(layers=("metal2", "via2", "metal3"),
|
||||
offset=en_pin.center())
|
||||
self.add_layout_pin_rect_center(text="en",
|
||||
layer="metal3",
|
||||
offset=en_pin.center())
|
||||
if i < self.num_wmasks-1:
|
||||
self.add_layout_pin(text="en",
|
||||
layer="metal3",
|
||||
offset=en_pin.ll(),
|
||||
width = self.en_width(i),
|
||||
height = en_pin.height())
|
||||
|
||||
wmask_out_pin = self.and2_insts[i].get_pin("Z")
|
||||
self.add_layout_pin(text="wmask_out_{0}".format(i),
|
||||
@@ -146,14 +149,20 @@ class write_mask_and_array(design.design):
|
||||
layer="metal3",
|
||||
offset=pin_pos)
|
||||
|
||||
def en_width(self, pin):
|
||||
en_pin = self.and2_insts[pin].get_pin("B")
|
||||
next_en_pin = self.and2_insts[pin+1].get_pin("B")
|
||||
width = next_en_pin.lr() - en_pin.ll()
|
||||
return width[0]
|
||||
|
||||
def route_enable(self):
|
||||
for i in range(self.num_wmasks-1):
|
||||
en_pin = self.and2_insts[i].get_pin("B")
|
||||
next_en_pin = self.and2_insts[i+1].get_pin("B")
|
||||
offset = en_pin.center()
|
||||
next_offset = next_en_pin.center()
|
||||
self.add_path("metal3", [offset, next_offset])
|
||||
|
||||
# def route_enable(self):
|
||||
# for i in range(self.num_wmasks-1):
|
||||
# en_pin = self.and2_insts[i].get_pin("B")
|
||||
# next_en_pin = self.and2_insts[i+1].get_pin("B")
|
||||
# offset = en_pin.center()
|
||||
# next_offset = next_en_pin.center()
|
||||
# self.add_path("metal3", [offset, next_offset])
|
||||
|
||||
def get_cin(self):
|
||||
"""Get the relative capacitance of all the input connections in the bank"""
|
||||
|
||||
Reference in New Issue
Block a user