215
4
4 Instructions 4.6.1 Matrix Operations
4.6.1 Matrix Operations
Matrix operations
BK+ Matrix addition operation
BK- Matrix subtraction operation
MAND Matrix AND operation
MOR Matrix OR operation
MXOR Matrix XOR operation
MXNR Matrix XNR operation
MINV Matrix inverse operation
MBC Matrix bit status counting operation
BK+: Matrix addition operation
◆
Overview
The BK+ instruction adds BIN numbers together in matrix format.
BK+
S1 S2 D n
Matrix addition
operation
Applicable model:
H3U
S1
Source
address
Start number of elements that store the data
subjected to an addition operation
16-bit instruction (9
steps)
BK+: Continuous
execution
BK+P: Pulse
execution
32-bit instruction (17
steps)
DBK+: Continuous
execution
DBK+P: Pulse
execution
S2
Source
address
Constant subjected to an addition operation, or start
number of elements that store the data subjected to
an addition operation
D
Destination
address
Start number of elements that store the operation
result
n Data count Number of data entries in an operation
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The n data entries (16- or 32-bit) from head addresses [S1] and [S2] are added together. The result is
stored in n units (16- or 32-bit) from head address [D].