Operator IS_Equal

Operator Library: Logic

如果输入链接 I 的值等于参数 Number 的值,算子 IS_Equal 会将输出设为逻辑“1”,否则输出为“0”。

若要比较两个输入链接的值,请改用算子 CMP_Equal。

I/O Property

Property 值
Operator Type O
Input Link I, data input
Output Link O,数据输出

支持的 Link Format

Link Parameter Input Link I Output Link O
Bit Width [1, 63] 无符号,[2, 64] 有符号 1
Arithmetic {unsigned, signed} unsigned
Parallelism any as I
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format VAF_GRAY as I
Color Flavor FL_NONE as I
Max. Img Width any as I
Max. Img Height any as I

参数

Number
键入 static/dynamic read/write parameter
默认 0
范围 与输入链接 I 的范围相同

用于与输入链路值进行比较的值。

ImplementationType
键入 静态写参数
默认 AUTO
范围 (AUTO, EmbeddedALU, LUT)

参数 ImplementationType 允许您影响算子的实现方式,即定义用于实现该算子的逻辑元件。

您可以选择以下值之一:

AUTO: 实例化算子时,系统会根据算子的参数化配置,自动为给定的 FPGA 架构选择最佳的实现策略。

EmbeddedALU:该运算符使用 FPGA 的嵌入式 ALU 单元。

LUT: 算子使用 FPGA 的 LUT 元件。

[注意] 通常情况下使用 AUTO

Normally, the parameter should be set to AUTO. In special cases, i.e., if one kind of FPGA ressource runs short in a design, you can manually influence the FPGA resource management using the values EmbeddedALU and/or LUT.

使用示例

以下示例展示了算子 IS_Equal 的用法: