Colocated Ports Constraint - Colocated Ports Constraint - 2026.1 English - UG1603

AI Engine-ML Kernel and Graph Programming Guide (UG1603)

Document ID
UG1603
Release Date
2026-07-08
Version
2026.1 English

This constrains a ports buffer location to be on the same bank as that of one or more other port buffers. When two double buffers are colocated, this constraint places both ping buffers on one bank and both pong buffers on another bank.

Syntax

"colocated_ports": [<port list>]
<port list> ::= <port name>[, <port name>...]
<port name> ::= string

Example

{
  "PortConstraints": {
    "mygraph.k2.in[0]": {
      "colocated_ports": ["mygraph.k2.out[0]"]
    }
  }
}
Note: You cannot apply colocated ports constraints to shared buffers.