Relative Constraints - 2023.2 English

AI Engine Kernel and Graph Programming Guide (UG1079)

Document ID
UG1079
Release Date
2023-12-04
Version
2023.2 English

Kernel, PLIO and GMIO objects can be placed relative to each other. These types of constraints are called relative constraints. The X and Y offsets indicates the relative column and row offsets between the source node and the relative node. Either X offset or Y offset should be specified. If X offset or Y offset is not specified, it is "don't care".

Syntax

{
  "NodeConstraints": {
    "<source node>" : { 
      "relative_nodes": ["<destination node>:(X=-3,Y=-2)", "<destination node>:(X=1)", "<destination node>:(Y=2)", ...] 
    }
  }
}

<source node> ::= string
<destination node> :: string

Example

{
  "NodeConstraints": {
    "gr.k00": {
      "relative_nodes": ["gr.k01:(X=1,Y=1)","gr.k10:(X=2,Y=2)","gr.k11:(X=3,Y=-3)"]
    },
    "DatainA0": {
      "relative_nodes": ["Dataout00:(X=0)","Dataout01:(X=-1)","Dataout10:(X=-2)","Dataout11:(X=3)"]
    },
    "gr.k00": {
      "relative_nodes": ["DatainA0:(X=0)","DatainA1:(X=1)","DatainB0:(X=2)","DatainB1:(X=-3)"]
    },
    "DatainA0": {
      "relative_nodes": ["gr.k00:(X=0)"]
    }
  }
}