Operator IS_Equal

Operator Library: Logic

若輸入連接端 I 的值等於參數 Number 的值,則 Operator IS_Equal 會將輸出設為邏輯「1」,否則輸出為「0」。

若要比較兩個輸入連接端的值,請改用 Operator CMP_Equal。

I/O Properties

Property Value
Operator Type O
Input Link I, data input
Output Link O, data output

支援的 Link 格式

Link Parameter Input Link I Output Link O
Bit Width [1, 63] unsigned, [2, 64] signed 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
Type static/dynamic read/write parameter
Default 0
Range 與輸入連接端 I 的範圍相同

要與輸入連線數值進行比較的數值。

ImplementationType
Type 靜態寫入參數
Default AUTO
Range (AUTO, EmbeddedALU, LUT)

引數 ImplementationType 允許您影響 operator 的實作方式,亦即定義用於實作該 operator 的邏輯元素。

您可以選擇以下其中一個值:

AUTO: 當執行個體化 operator 時,系統會根據 operator 的參數化,自動為特定的 FPGA 架構選擇最佳的實作策略。

EmbeddedALU:此 Operator 使用 FPGA 的內嵌 ALU 元素。

LUT: operator 使用 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.

使用範例

以下範例展示了 Operator IS_Equal 的使用方式: