symop.devices.ports

Device port specification types.

Defines the static interface for device ports, including direction and binding requirements.

These specifications are used by the runtime to validate port mappings provided during device application and to ensure consistency between device definitions and their usage.

Classes

PortSpec(name, direction[, required])

Stable declared port interface for a device.

class PortSpec(name: str, direction: Literal['in', 'out', 'inout'], required: bool = True) None

Bases: object

Stable declared port interface for a device.

Parameters:
  • name (str)

  • direction (Literal['in', 'out', 'inout'])

  • required (bool)

name

Logical port name used when binding paths during device application.

direction

Port direction in the semantic device model.

required

Whether the caller must explicitly bind this port.

direction: Literal['in', 'out', 'inout']
name: str
required: bool = True