Analog Devices adsp-2100 Manual page 313

Adsp-2100 family programmable single-chip microprocessors
Table of Contents

Advertisement

14 Software Examples
.MODULE
{
14 – 10
matmul;
Single-Precision Matrix Multiplication
S
Z(i,j) = ∑ [X(i,k) × Y(k,j)]
k=0
X is an RxS matrix
Y is an SxT matrix
Z is an RxT matrix
Calling Parameters
I1 —> Z buffer in data memory
I2 —> X, stored by rows in data memory
I6 —> Y, stored by rows in program memory
M0 = 1
M4 = 1
L0,L4,L5 = 0
SE = Appropriate scale value
CNTR = R
Return Values
Z Buffer filled by rows
Altered Registers
I0,I1,I2,I4,I5,MR,MX0,MY0,SR
Computation Time
((S + 8) × T + 4) × R + 2 + 2 cycles
i=0 to R; j=0 to T
M1 = S
M5 = T
L1 = 0
L2 = 0
L6 = 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents