MAC
Multiply and Accumulate
7-104
Cycles
Cycles for a Single MAC Instruction
Operand
ROM
DARAM
SARAM
External
Operand 1: DARAM/
ROM
Operand 2: DARAM
3
3
3
3+2p
code
Operand 1: SARAM
Operand 2: DARAM
3
3
3
3+2p
code
Operand 1: External
Operand 2: DARAM
3+p
op1
3+p
op1
3+p
op1
3+p
op1
+2p
code
Operand 1: DARAM/
ROM
Operand 2: SARAM
3
3
3
3+2p
code
Operand 1: SARAM
Operand 2: SARAM
3
4
†
3
4
†
3
4
†
3+2p
code
4+2p
code
†
Operand 1: External
Operand 2: SARAM
3+p
op1
3+p
op1
3+p
op1
3+p
op1
+2p
code
Operand 1: DARAM/
ROM
Operand 2: External
3+d
op2
3+d
op2
3+d
op2
3+d
op2
+2p
code
Operand 1: SARAM
Operand 2: External
3+d
op2
3+d
op2
3+d
op2
3+d
op2
+2p
code
Operand 1: External
Operand 2: External
4+p
op1
+d
op2
4+p
op1
+d
op2
4+p
op1
+d
op2
4+p
op1
+d
op2
+2p
code
† If both operands are in the same SARAM block
Cycles for a Repeat (RPT) Execution of an MAC Instruction
Operand
ROM
DARAM
SARAM
External
Operand 1: DARAM/
ROM
Operand 2: DARAM
n+2
n+2
n+2
n+2+2p
code
Operand 1: SARAM
Operand 2: DARAM
n+2
n+2
n+2
n+2+2p
code
Operand 1: External
Operand 2: DARAM
n+2+np
op1
n+2+np
op1
n+2+np
op1
n+2+np
op1
+2p
code
† If both operands are in the same SARAM block