运算符 Library: Synchronization
通过 TxImageLink 算子,可以将图像发送到设计中任意位置的 RxImageLink 算子。 这两个算子无需链路即可建立连接。
With the image transfer between the TxImageLink and RxImageLink operators, it is possible to implement loops in a design.
![]() |
Loops require data buffering strategy |
|---|---|
|
Operators TxImageLink and RxImageLink do not buffer data. Therefore, when implementing loops, you need to take special care with regard to data buffering to avoid deadlocks. |
支持 VisualApplets 通常支持的所有图像格式。 图像格式保持不变,即 RxImageLink 输出端的格式与 TxImageLink 在其输入端接收到的格式相同。
参数 Channel_ID 定义用于寻址接收端 RxImageLink 算子的通道 ID。 参数值必须是唯一的,且不得被设计中的任何其他 TxImageLink 算子使用。
设计中必须正好存在一个使用相同通道 ID 并接收图像数据的 RxImageLink 算子。
Each TxImageLink operator in a design is connected to exactly one RxImageLink operator via one channel ID. In the Resource Dialog of VisualApplets, you can see that one ImageChannel resource is used for each TxImageLink-RxImageLink connection. Resource ImageChannel allows to control the assignment of individual TxImageLink operators to individual RxImageLink operators. For the number of available ImageChannel resources (which also defines the maximum number of allowed TxImageLink and RxImageLink operators in a design), see Device Resources.

![]() |
Parametrization of Link Format in Loops |
|---|---|
|
As soon as the link properties dialog is opened, the "automatic update" feature will adapt the link properties (such as Bit Width, or image dimensions) according to the operator chain's configuration. The input format of TxImageLink always defines the output format of RxImageLink (100% automatic consistency). Therefore, when you use operators TxImageLink and RxImageLink to implement loops, you need to take special care regarding the parametrization of the link formats. 示例 Wrong Implementation, value of link parameter Bit Width gets higher with every iteration through the loop: ![]() Right Implementation, Operator CastBitWidth changes the value of link parameter Bit Width back to the original value with every iteration through the loop: ![]() |
![]() |
Synchronizing Channels between different hierarchical design levels |
|---|---|
|
如果使用 TxImageLink/RxImageLink 对在不同的分层设计级别之间建立数据传输通道, 该连接将被视为一个 M 算子。因此,您可能需要实现额外的同步元素 (直接连接则无需此操作)。 |
| Channel_ID | |
|---|---|
| 键入 | static 参数 |
| 默认 | 0 |
| 范围 | [0, 1023] |
|
The channel ID of the image link. See descriptions above. |
|
以下示例展示了 TxImageLink 算子的使用方法:
-
'Functional Example for Loading Test Images Using ImageInjector '
示例 - 演示如何使用该算子
-
'A rolling average is applied on a dynamic number of images'
Examples - Rolling Average - Loop
-
'Depth From Focus Using Loops'
Examples - Depth From Focus using Loops

![[Caution]](../common/images/admon/caution.png)
![[重要]](../common/images/admon/important.png)



上一页

