Operator IS_Equal

Operator Library: Logic

若輸入鏈接 I 上的值 等於參數Number 的值,則運算子 IS_Equal 會將輸出設為邏輯「1」; 否則,輸出為「0」。

若要比較兩個輸入連結的數值,請使用運算子 CMP_Equal 。

I/O Properties

Property Value
Operator Type O
Input Link I,資料輸入
Output Link O,資料輸出

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [1, 63] 無符號,[2, 64] 有符號 1
Arithmetic {unsigned, signed} 無號數
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

Parameters

Number
Type static/dynamic 讀寫參數
Default 0
Range 與輸入連結 I 的範圍相同

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

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

參數 ImplementationType 允許您影響運算子的實作,也就是定義要使用哪些邏輯元素來實作運算子。

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

AUTO: 當具現化運算子時,會根據運算子的參數化,自動為給定的 FPGA 架構選擇最佳的實作策略。

EmbeddedALU:此 operator 使用 FPGA 的嵌入式 ALU 元件。

LUT: 運算子使用 FPGA 的 LUT 元素。

[注意] 一般建議使用 AUTO

正常情況下,此參數應設為 AUTO。 在特殊情況下,例如當設計中的某種 FPGA 資源不足時, 您可以使用 EmbeddedALU 和/或 LUT 手動影響 FPGA 資源管理。

Examples of Use

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