It looks like you're new here. If you want to get involved, click one of these buttons!
I have a design rule check that involves a via layer, and the two connecting metal layers.
I want to do the same check on all vias in the stack.
Is there a way that I can create a function or loop, to avoid repeating the same lines many times.
Something in the lines of
via_stack = [2, 4, 6, 8] def via_check(metal_below, via_layer, metal_above): Overlap = metal_below & via_layer & metal_above Overlap.output(100, "via rule triggered") for layers in via_stack: #Do design rule check via_check(input(layers-1), input(layers), input(layers+1))