Bitwise Logical Operator for Simulink

Simulink Category: Math blocks

Embed Block Equivalent: b.<operation> compound block

The bitwise AND, OR, XOR, SHIFT_LEFT, SHIFT_RIGHT operations do not require intervention by you. The bitwise NOT operation depends on the input data type. It was implemented as subtraction from maximal value. Consequently, for unsigned char, the maximum value is 255; for unsigned short, it is 65535; and for unsigned long, it is –4294967295.All other operations are implemented.