DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: hco1423077116064
Ixiasoft
Visible to Intel only — GUID: hco1423077116064
Ixiasoft
15.4.2. Accumulator (Acc)
r= acc(x, n)
The acc block allows accumulating data sets of variable lengths. The block indicates a new data set by setting n high with the first element of the accumulation.
This example accumulates x0 + x1 + x2 and y0 + y1 + y2.
The acc block has single and double-precision floating-point data inputs and outputs.
.
Parameter | Description |
---|---|
LSBA | This parameter defines the weight of the accumulator’s LSB, and therefore the accuracy of the accumulation. This value and the maximum number of terms to be accumulated sets the accuracy of the accumulator. The maximum number of terms the design can accumulate can invalidate the log_2(N) lower bits of the accumulator. For instance, if an accuracy of 2^(-30) is enough, and you add 1k of numbers, LSBA = –30 – log2(1k) , which is approximately –40. |
MSBA | The weight of the MSB of the accumulation result. Adding a few guard bits to the value has little impact on the implementation size. You can set this parameter in one of the following ways:
|
maxMSBX | The maximum weight of the inputs. When adding probabilities <=1 set this weight to 0. When adding data from sensors, set bounds on the input ranges. Alternatively, set MaxMSBX = MSBA. However, the size of the architecture may increase. |
Signal | Direction | Type | Description | Vector Data Support | Complex Data Support |
---|---|---|---|---|---|
x | Input | Single or double | Operand | Yes | No |
n | Input | Boolean | Control | Yes | No |
r | Output | Single or double | Output | Yes | No |
xO | Output | Boolean | This flag goes high when the input value has a weight larger than selected value for MaxMSBX. The result of the accumulation is then invalid. | Yes | No |
xU | Output | Boolean | If this flag goes high, an input value is completely shifted out of the accumulator. This flag warns that the value of LSBA is possibly too large. | Yes | No |
aO | Output | Boolean | This flag goes high when the accumulated value has a weight larger than MSBA. The result of the accumulation is then invalid. | Yes | No |