def METHOD_NAME(self):
    # Create the enable pin that connects all write mask AND array's B pins
    en_pin = self.and2_insts[0].get_pin("B")
    self.add_layout_pin_segment_center(text="en",
                                       layer="m3",
                                       start=vector(0, en_pin.cy()),
                                       end=vector(self.width, en_pin.cy()))
    for i in range(self.num_wmasks):
        # Route the A pin over to the left so that it doesn't conflict with the sense
        # amp output which is usually in the center
        inst = self.and2_insts[i]
        a_pin = inst.get_pin("A")
        a_pos = a_pin.center()
        in_pos = vector(inst.lx(),
                        a_pos.y)
        self.add_via_stack_center(from_layer=a_pin.layer,
                                  to_layer="m2",
                                  offset=in_pos)
        self.add_layout_pin_rect_center(text="wmask_in_{0}".format(i),
                                        layer="m2",
                                        offset=in_pos)
        self.add_path(a_pin.layer, [in_pos, a_pos])
        # Copy remaining layout pins
        self.copy_layout_pin(inst, "Z", "wmask_out_{0}".format(i))
        # Add via connections to metal3 for AND array's B pin
        en_pin = inst.get_pin("B")
        en_pos = en_pin.center()
        self.add_via_stack_center(from_layer=en_pin.layer,
                                  to_layer="m3",
                                  offset=en_pos)
        # Add connection to the supply
        for supply_name in ["gnd", "vdd"]:
            supply_pin = inst.get_pin(supply_name)
            self.add_via_stack_center(from_layer=supply_pin.layer,
                                      to_layer="m1",
                                      offset=supply_pin.center())
    for supply in ["gnd", "vdd"]:
        supply_pin = self.and2_insts[0].get_pin(supply)
        supply_pin_yoffset = supply_pin.cy()
        left_loc = vector(0, supply_pin_yoffset)
        right_loc = vector(self.width, supply_pin_yoffset)
        self.add_path("m1", [left_loc, right_loc])
        for loc in [left_loc, right_loc]:
            self.add_via_stack_center(from_layer=supply_pin.layer,
                                      to_layer="m1",
                                      offset=loc)
            self.copy_power_pin(supply_pin, loc=loc)