Skip to content

Difficult to select specific labels for net name assignment in net extraction #487

@klayoutmatthias

Description

@klayoutmatthias

It's possible create a text layer with "label" and connect it to assign labels to nets:

# in DRC or LVS:
texts = labels(10, 0)
metal = polygons(11, 0)
connect(texts, metal)    # assigns net names

But it's a bit tedious to select specific texts (here: "A*"):

# in DRC or LVS:
texts = labels(10, 0)
valid_text_markers = texts.texts("A*")
metal = polygons(11, 0)
connect(texts, valid_text_markers)   # transfer labels to markers
connect(valid_text_markers, metal)    # connect markers with nets

A more elegant solution was to have text filters, like

# in DRC or LVS:
texts = labels(10, 0).selected_labels("A*")
metal = polygons(11, 0)
connect(texts, metal)    # assigns net names

similar to the other "selected_" in-place operations. Could also have an out-of-place version:

# in DRC or LVS:
texts = labels(10, 0)
texts.select_labels("A*")
metal = polygons(11, 0)
connect(texts, metal)    # assigns net names

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions