UL_CONTACTREF

Data members

   
contact UL_CONTACT
element UL_ELEMENT
route int (CONTACT_ROUTE_...)
routetag string (see note)

See also UL_SIGNAL, UL_PINREF

Constants

   
CONTACT_ROUTE_ALL must explicitly route to all contacts
CONTACT_ROUTE_ANY may route to any contact

Notes

If route has the value CONTACT_ROUTE_ANY, the routetag data member returns an additional tag which describes a group of contactrefs belonging to the same pin.

Example

board(B) {
  B.signals(S) {
    printf("Signal '%s'\n", S.name);
    S.contactrefs(C) {
      printf("\t%s, %s\n", C.element.name, C.contact.name);
      }
    }
  }