Perform a multiplyaccumulate operation on the inputs
HDL Coder / HDL Operations / MultiplyAccumulate
The MultiplyAccumulate block performs this operation on the inputs
u1
and u2
, and the bias k
,
to compute the result y
.
y = sum(u1.* u2) + k
The inputs u1
and u2
can be scalars or vectors.
By default, the bias k
is equal to zero, and the block computes the
dot product of the inputs u1
and u2
. You can
specify a nonzero value for k
using Dialog
or
Input port
as the Source. The block adds
this bias to the dot product of u1
and u2
. The
multiplication operation is full precision irrespective of the Output data
type setting. The Output data type and
Integer rounding mode settings apply to the addition
operation.
Data Types 

Sample Time 

Direct Feedthrough 

Multidimensional Signals 

VariableSize Signals 

ZeroCrossing Detection 
