運算子 IS_LessThan

Operator Library: Logic

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

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

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

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

用於與輸入連結值進行比較的數值。

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

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

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

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

EmbeddedALU: 運算子使用 FPGA 的嵌入式 ALU 元素。

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

[注意] 一般建議使用 AUTO

通常,此參數應設定為 AUTO。 在特殊情況下,即當設計中某種 FPGA 資源不足時, 您可以透過 EmbeddedALU 和/或 LUT 的數值,手動調整 FPGA 資源管理。

Examples of Use

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

  • 'Laser Pointer Detection'

    範例 - 進行高強度點係數的卷積運算。 對於高於閾值的結果,會將相應的畫素染成紅色。