DVP - ES2/EX2/SS2/SA2/SX2 Operation Manual - Programming

API

184

Mnemonic

Operands

Function

Controllers

MINV

P

Matrix inverse

ES2/EX2

SS2

SA2 SX2

 

 

SE

Type

Bit Devices

 

 

 

 

 

Word devices

 

 

 

 

 

 

Program Steps

 

OP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

Y

M

S

K

H

KnX

KnY

KnM

KnS

T

C

D

E

 

F

MINV, MINVP: 7 steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

 

 

 

 

 

 

*

*

 

*

 

*

 

*

*

*

 

 

 

 

 

 

 

 

 

D

 

 

 

 

 

 

 

 

*

 

*

 

*

 

*

*

*

 

 

 

 

 

 

 

 

 

n

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

16-bit

 

 

 

 

32-bit

 

 

 

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

 

 

 

 

 

 

 

SE

SE

SE

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S: Matrix source device

D: Operation result

n: Matrix length (K1~K256)

 

 

Explanations:

1.MINV instruction performs inverse operation on matrix source device S with matrix length n and stores the result in D.

2.If operands S, D use KnX, KnY, KnM, KnS format, only n = 4 is applicable.

Program Example:

When X0 = ON, MINV performs inverse operation on 16-bit registers D0~D2. The operation result is then stored in 16-bit registers D20~D22

X0

 

 

 

MINV

D0

D20

K3

 

 

b15

 

 

 

 

 

 

 

 

 

b0

Before

D0

0

1 0 1

0 1 0

1 0 1

0 1

0

1 0

1

Execution

D1

0

1 0 1

0 1 0

1 0 1

0 1

0

1 0

1

 

D2

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

 

 

 

 

 

 

 

 

MINV

 

 

 

 

 

After

D20 1

0 1

0

1 0

1

0 1

0 1

0 1

0 1

0

D21

1

0 1

0

1 0

1

0 1

0 1

0 1

0 1

0

Execution

 

D22 1

0 1

0 1 0

1

0 1

0 1

0 1

0 1

0

3 - 412

Page 528
Image 528
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Minv