運算子 NOT

Operator Library: Logic

NOT 運算子會將輸入位元反轉。 它執行位元級的邏輯反轉。 若對應的輸入位元為「0」,則每個輸出位元設定為邏輯「1」;否則,輸出為「0」。 輸入連接埠的數量必須在模組實例化時選取。

因此,輸出位元 i 為

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, 64]1 as I
Arithmetic {unsigned, signed} as I
Parallelism any as I
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D, VALT_SIGNAL} as I
Color Format any as I
Color Flavor any as I
Max. Img Width any as I
Max. Img Height any as I

1

未帶正負號數值的輸入 Bit Width 範圍為 [1, 64]。 對於帶正負號的輸入,範圍為 [2, 64]。 對於未帶正負號的彩色輸入,範圍為 [3, 63],對於帶正負號的彩色輸入,範圍則為 [6, 63]。

Parameters

無

Examples of Use

以下範例展示了 NOT 運算子的使用方式: