AI Engine-ML Intrinsics User Guide
(v2023.2)
|
Intrinsics for moving values from vector data-types to accumulator data-types. More...
Intrinsics for moving values from vector data-types to accumulator data-types.
Moving data from vector data-types to accumulator data-types (e.g. for initialization) requires adjustment in precision because the accumulator data-types are wider in size. For fixed point arithmetic, an appropriate left shift operation would align the decimal point between the two representations. The shift amount is specified as a parameter (in the range 0 to 63).
The upshift intrinsics performs the saturation computing and then the upshift :
No rounding is needed as there is no loss in precision. Thus, after the saturation is computed, the shift is performed:
The full ups call then applies the above algorithm to all lanes of a vector and sets the status saturation bit (if saturation is triggered):
Modules | |
AIE interface | |
Floating-point | |
Size interface | |