Operator Library: Logic
運算子 CMP_AgeB(比較 A 大於 B)若輸入鏈路 A 的值大於 輸入鏈路 B 的值,則將輸出設為邏輯「1」;否則,輸出為「0」。
若要將輸入 A 的值與動態參數值進行比較,請使用運算子 IS_GreaterThan 。
| Link Parameter | 輸入鏈接 A | 輸入鏈接 B | Output Link O |
|---|---|---|---|
| Bit Width | [1, 64] 無號數,[2, 64] 有號數 | [1, 64] 無號數,[2, 64] 有號數 | 1 |
| Arithmetic | {unsigned, signed} | 作為 A | 無號數 |
| Parallelism | any | 作為 A | as I |
| Kernel Columns | any | 作為 A | as I |
| Kernel Rows | any | 作為 A | as I |
| Img Protocol | {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} | 作為 A | as I |
| Color Format | VAF_GRAY | 作為 A | as I |
| Color Flavor | FL_NONE | 作為 A | as I |
| Max. Img Width | any | 作為 A | as I |
| Max. Img Height | any | 作為 A | as I |
| ImplementationType | ||||
|---|---|---|---|---|
| Type | 靜態寫入參數 | |||
| Default | AUTO | |||
| Range | (AUTO, EmbeddedALU, LUT) | |||
|
參數 ImplementationType 允許您影響運算子的實作,也就是定義要使用哪些邏輯元素來實作運算子。 您可以選擇下列其中一個值: AUTO: 當具現化運算子時,會根據運算子的參數化,自動為給定的 FPGA 架構選擇最佳的實作策略。 EmbeddedALU:此 operator 使用 FPGA 的嵌入式 ALU 元件。 LUT: 運算子使用 FPGA 的 LUT 元素。
|
||||
以下範例展示了運算子 CMP_AgtB 的使用方式:
-
'Functional Example for Specific Operators of Library Accumulator and Library Logic'
範例 - operator 使用方式示範

![[注意]](../common/images/admon/note.png)
上一頁

