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

Points to note:

1.A matrix consists of more than 1 consecutive 16-bit registers. The number of registers is indicated as the matrix length (n). A matrix contains 16 × n bits (points) and the matrix instructions conduct bit operation, i.e. operation is performed bit by bit.

2.Matrix instructions designate a single bit of the 16 × n bits (b0 ~ b16n-1) for operation. The bits in matrix are not operated as value operation.

3.The matrix instructions process the moving, copying, comparing and searching of one-to-many or many-to-many matrix operation, which are a very handy and important application instructions.

4.The matrix operation requires a 16-bit register for designating a bit among the 16n bits in the matrix. The register is the Pointer (Pr) of the matrix, designated by the user in the instruction. The valid range of Pr is 0 ~ 16n -1, corresponding to b0 ~ b16n-1 in the matrix.

5.The bit number decreases from left to right (see the figure below). With the bit number, matrix operation such as bit shift left, bit shift right, bit rotation can be performed and identified.

 

Left

 

 

 

 

 

Width: 16 bits

 

Right

D0

b15

1

1

1

1

1

1

1 1 1 1

0

0 0

0 1 1

b0

D1

b31

1

1

1

1

1

1

1 1 1 1

0

0 0

0 1 1

b16

D2

b47

1

1

1

1

1

1

1 1 1 1

0

0 0

0 1 1

b32

 

 

0 0 0 1 0 0

1 0 0 0 1 1 0 1 0 0

 

Dn-1

b16n-1

0 0 0

1 0 0 1 0 0 0 1

1 0

1 0 0

 

Length: n

6.The matrix width (C) is fixed as 16 bits.

7.Pr: matrix pointer. E.g. if Pr is 15, the designated bit is b15.

8.Matrix length (R) is n: n = 1 ~ 256.

Example: This matrix is composed of D0, n = 3; D0 = HAAAA, D1 = H5555, D2 = HAAFF

R0

C15 C14 C13 C12 C11 C10 C9 C8 C7 C6 C5 C4 C3 C2 C1 C0

D0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

R1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

D1

R2

1

0

1

0

1

0

1

0

1

1

1

1

1

1

1

1

D2

Example: This matrix is composed of K2X20, n = 3; K2X20 = H37, K2X30 = H68, K2X40 = H45

R0

C15 C14 C13 C12 C11 C10 C9 C8 C7 C6 C5 C4 C3 C2 C1 C0

X20~X27

0

0

0

0

0

0

0

0

0

0

1

1

0

1

1

1

R1

0

0

0

0

0

0

0

0

0

1

1

0

1

0

0

0

X30~X37

R2

0

0

0

0

0

0

0

0

0

1

0

0

0

1

0

1

X40~X47

Fill “0” into the blank in R0(C15-C8), R1(C15-C8), and R2(C15-C8).

3 - 408

Page 524
Image 524
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Fill 0 into the blank in R0C15-C8, R1C15-C8, and R2C15-C8