Specified bitwise operation on inputs
Simulink / Logic and Bit Operations
HDL Coder / Logic and Bit Operations
The Bitwise Operator block performs the bitwise operation that you specify on one or more operands. Unlike logic operations of the Logical Operator block, bitwise operations treat the operands as a vector of bits rather than a single value.
The Bitwise Operator block does not support shift operations. For shift operations, use the Shift Arithmetic block.
When configured as a multiinput XOR gate, this block performs modulo2 addition according to the IEEE^{®} Standard for Logic Elements.
Data Types 

Direct Feedthrough 

Multidimensional Signals 

VariableSize Signals 

ZeroCrossing Detection 

^{[a]} Bit operations are not recommended for use with Boolean signals. 
Logical Operator  Compare To Constant  Compare To Zero  Shift Arithmetic