User guide
64 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 1: Hardware Design Using System Generator
end
else
if ~en
else
% if enabled, update the state
if op==0
s = s/feed_back_down_scale + b;
else
s = s/feed_back_down_scale - b;
end
end
end
The following diagram shows a subsystem containing the accumulator MCode block using
M-function xl_accum. The MCode block is labeled MCode Accumulator. The
subsystem also contains the Xilinx Accumulator block, labeled Accumulator, for
comparison purposes. The MCode block provides the same functionality as the Xilinx
Accumulator block; however, its mask interface differs in that parameters of the MCode
block are specified with a cell array in the Function Parameter Bindings parameter.