UL_GATE

Data members

   
addlevel int (GATE_ADDLEVEL_...)
name string (GATE_NAME_LENGTH)
swaplevel int
symbol UL_SYMBOL
x, y int (origin point, see note)

See also UL_DEVICE

Constants

   
GATE_ADDLEVEL_MUST must
GATE_ADDLEVEL_CAN can
GATE_ADDLEVEL_NEXT next
GATE_ADDLEVEL_REQUEST request
GATE_ADDLEVEL_ALWAYS always
GATE_NAME_LENGTH max. recommended length of a gate name (used in formatted output only)

Note

The coordinates of the origin point (x, y) are always those of the gate's position within the device, even if the UL_GATE has been derived from a UL_INSTANCE.

Example

library(L) {
  L.devices(D) {
    printf("Device: %s, Footprint: %s\n", D.name, D.footprint.name);
    D.gates(G) {
      printf("\t%s, swaplevel=%d, symbol=%s\n",
             G.name, G.swaplevel, G.symbol.name);
      }
    }
  }