運算子 IS_InRange

運算子函式庫:邏輯

函式庫:邏輯

若輸入鏈路 I 上的值位於由 參數From和To 所定義的區間內,則運算子 IS_InRange 會將輸出設為邏輯「1」;否則,輸出為「0」。

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 dynamic write parameter
Default 0
Range 與輸入連結 I 的範圍相同

範圍內的最小值。

設為
Type dynamic write parameter
Default 255
Range 與輸入連結 I 的範圍相同

同系列中最具性價比。

ImplementationType
Type 靜態寫入參數
Default AUTO
Range (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.

Examples of Use

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