Skip to content

Binary Bitwise Operators

PSS supports 3 basic bitwise operators: 1. Bitwise AND & 2. Bitwise OR | 3. Bitwise XOR ^

CONSTANT op CONSTANT

1
2
3
bit [8] byteAND = 8'b0110_1001 & 8'b0000_1111;  //  byteAND: 0 -> 8'b0000_1001
bit [8] byteOR  = 8'b0110_1001 | 8'b0000_1111;  //  byteOR : 0 -> 8'b0110_1111
bit [8] byteXOR = 8'b0110_1001 ^ 8'b0000_1111;  //  byteXOR: 0 -> 8'b0110_0110

Last update: 2023-10-16
Created: 2023-10-16