开发者
下载
[object Object][object Object]

非阻塞检测信号是否满足比较条件。满足则返回 [object Object],否则返回 [object Object]。适用于基于轮询的同步(含超时)或与其他工作交错执行的场景。

支持单个信号或多维信号tensor(最高5维,形状由GlobalSignalData决定)。对于tensor,仅当所有信号均满足条件时才返回 [object Object]

[object Object]

检测并返回结果:

单个信号:

result=(signal  cmp  cmpValue)\mathrm{result} = (\mathrm{signal} \;\mathtt{cmp}\; \mathrm{cmpValue})

信号tensor(所有元素均须满足):

result=d0,d1,d2,d3,d4(signald0,d1,d2,d3,d4  cmp  cmpValue)\mathrm{result} = \bigwedge_{d_0, d_1, d_2, d_3, d_4} (\mathrm{signal}_{d_0, d_1, d_2, d_3, d_4} \;\mathtt{cmp}\; \mathrm{cmpValue})

其中 [object Object] ∈ {[object Object], [object Object], [object Object], [object Object], [object Object], [object Object]}

[object Object]
[object Object]
[object Object]

声明于 [object Object]

[object Object]
[object Object]
  • 类型约束
    • [object Object] 必须为 [object Object](32位信号)。
  • 内存约束
    • [object Object] 必须指向本地地址(当前NPU)。
  • 返回值
    • 条件满足时返回 [object Object],否则返回 [object Object]
    • 对于信号tensor,仅当所有信号均满足条件时才返回 [object Object]
  • 形状语义
    • 单个信号:形状为 [object Object]
    • 信号tensor:形状决定要检测的多维区域(最高5维)。
  • 比较运算符(WaitCmp):[object Object]undefined
[object Object][object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]