def METHOD_NAME(self):
    if "li" in layer:
        self.route_layer = "li"
    else:
        self.route_layer = "m1"
    # Route dff q to inv1 a
    q_pin = self.dff_inst.get_pin("Q")
    a1_pin = self.inv1_inst.get_pin("A")
    mid1 = vector(a1_pin.cx(), q_pin.cy())
    self.add_path(q_pin.layer, [q_pin.center(), mid1, a1_pin.center()], width=q_pin.height())
    self.add_via_stack_center(from_layer=a1_pin.layer,
                              to_layer=q_pin.layer,
                              offset=a1_pin.center())
    # Route inv1 z to inv2 a
    z1_pin = self.inv1_inst.get_pin("Z")
    a2_pin = self.inv2_inst.get_pin("A")
    self.mid_qb_pos = vector(0.5 * (z1_pin.cx() + a2_pin.cx()), z1_pin.cy())
    self.add_zjog(z1_pin.layer, z1_pin.center(), a2_pin.center())