UL_PORT

Data members

   
border int (MODULE_BORDER_...)
bus string (see note)
direction int (PIN_DIRECTION_... (see note))
name string (PORT_NAME_LENGTH)
net string (see note)
x, y int (connection point)

Loop members

   
nets() UL_NET (see note)
texts() UL_TEXT
wires() UL_WIRE

See also UL_MODULE, UL_MODULEINST, UL_PORTREF

Constants

   
MODULE_BORDER_BOTTOM at bottom border of module
MODULE_BORDER_RIGHT at right border of module
MODULE_BORDER_TOP at top border of module
MODULE_BORDER_LEFT at left border of module
PORT_NAME_LENGTH max. recommended length of a port name (used in formatted output only)

Note

The direction values are identical to the PIN_DIRECTION_... values (without PIN_DIRECTION_SUP).

The bus and the net data members return the name of the bus or net to which this port is connected to (only available in a UL_MODULEINST context). Additionally the nets loop member loops through all available nets of this connection.

Example

schematic(SCH) {
  SCH.modules(M) {
    M.ports(P) printf("Port: %s\n", P.name);
    }
  }