XNOR 運算子

Operator Library: Logic

XNOR 運算子執行位元級的邏輯 XNOR(非排他或)運算。 若對應的輸入位元值之和為偶數,則每個輸出位元設為邏輯「1」;否則,輸出 為「0」。 輸入連接埠的數量必須在模組實例化時選定。

因此,n 個輸入中的輸出位元 i 為

I/O Properties

Property Value
Operator Type O
Input Links I0,資料輸入
;I1..In-1,資料輸入
Output Link O,資料輸出

Supported Link Format

Link Parameter 輸入連結 I0 輸入鏈路 I1..In-1 Output Link O
Bit Width [1, 64]1 as I as I
Arithmetic {unsigned, signed} as I as I
Parallelism any as I as I
Kernel Columns any as I as I
Kernel Rows any as I as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D, VALT_SIGNAL} as I as I
Color Format any as I as I
Color Flavor any as I as I
Max. Img Width any as I as I
Max. Img Height any as I as I

1

對於無符號值,輸入位元寬度的範圍為 [1, 64]。 對於有符號輸入,範圍為 [2, 64]。 對於無符號色彩輸入,範圍為 [3, 63];對於有符號色彩,範圍為 [6, 63]。

Parameters

無

Examples of Use

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