Converts the float type to the hifloat8_t type, and supports multiple rounding modes.
- ROUND rounding mode: round half up
- HYBRID rounding mode: a stochastic rounding mode specifically used when the output result is hifloat8_t data
Based on the magnitude of the input data, the operation is divided into non-saturation mode and saturation mode.
- Non-saturation mode:
- When the input data exceeds the maximum or minimum value of the output type, the corresponding signed inf value of the output type is returned.
- When the input data is +/-inf, +/-inf is returned.
- When the input data is nan, nan is returned.
- Saturation mode:
- When the input data exceeds the maximum or minimum value of the output type, the corresponding maximum or minimum value of the output type is returned.
- When the input data is +/-inf, the corresponding maximum or minimum value of the output type is returned.
- When the input data is nan, 0 is returned.
Since the bit-width ratio of the source operand type to the destination operand type is 4:1, when writing data, the data of one VL size needs to be divided into four parts, and index 0, index 1, index 2, or index 3 is selected according to different interfaces.
[object Object]
For detailed descriptions of vector data registers and mask registers, see .
None
PIPE_V
- To enable the saturation mode and non-saturation mode, the ctrl register must be configured. For detailed descriptions of the ctrl register, see .
[object Object]