DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming ES2/EX2 SS2 Operands: S 1 : Matrix source device 1 S 2 : Matrix source device 2 D : Operation result n : Matrix length (K1~K256) Explanations: 1. MXNR instruction performs matrix XNR operation between matrix source device 1 and 2 with 2. Rule of matrix XNR operation: The result is 1 if the two bits are the same. The result is 0 if the matrix length n and stores the operation result in D . two bits are different. 3. If operands S 1 , S 2 , D use KnX, KnY, KnM, KnS format, only n = 4 is applicable. Program Example: When X0 = ON, MXNR performs matrix XNR operation between 16-bit registers D0~D2 and 16-bit registers D10~D12.
The operation result is then stored in 16-bit registers D20~D22. X0 b15 b0 D0 D1 D2 Before Execution MXNR D10 D11 D12 After Execution D20 D21 D22 3-444 API Mnemonic Operands Function Controllers 183 MXNR P Matrix XNR ES2/EX2 SS2 SA2 SX2 SE Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY K nM KnS T C D E F MXNR, MXNRP:
9 steps S 1 * * * * * * * S 2 * * * * * * * D * * * * * * n * * * 16-bit 32-bit S2 SA2 SA2 SA2 SX2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 SE SE SE MXNR D0 D10 D20 K3 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 0 1 1 1 1