Integer operations
![]() |
![]() |
| Vector | C | |
| in the palette | on the schematic |
The block implements logical operations with integers. List of implemented operations:
- & (AND)
- 1 (OR)
- ⊻ (exclusive OR, i.e. XOR)
- << (Bit shift to the left)
- >> (Bit shift to the right)
- + (Addition)
- - (Substraction)
- * (Multiplication)
- / (Division)
- % (Remainder)
Ports
The block has 2 input ports for vector or scalar integer signals. The type of inputs is set in the block properties. The dimensions of the inputs must match each other. The dimension of the output port is the same as for the input. If the input signals are vector, then the operations of the block are carried out element-by-element.
Properties
- log_type - type of operation;
- what - second operand type (scalar, vector).
Parameters
none

