vxsat

Vector Fixed-Point Saturate Flag

Indicates if a fixed-point instruction has had to saturate an output value to fit into a destination format

Attributes

CSR Address

0x9

Defining extension

V

Length

64-bit

Privilege Mode

U

Format

vxsat format
Figure 1. vxsat format

Field Summary

Name Location Type Reset Value

VALUE

63:0

RW-H

UNDEFINED_LEGAL

Fields

VALUE

Location

vxsat[63:0]

Description

The vxsat CSR has a single read-write least-significant bit (vxsat[0]) that indicates if a fixed-point instruction has had to saturate an output value to fit into a destination format. Bits vxsat[XLEN-1:1] should be written as zeros.

The vxsat bit is mirrored in vcsr.

Type

RW-H

Read-Write with Hardware update

Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write.

Reset value

UNDEFINED_LEGAL

Software write

This field has special behavior when written by software (e.g., through csrrw).

When software tries to write csr_value, the field will be written with the return value of the function below.

return csr_value.VALUE & 1;

Software read

This CSR may return a value that is different from what is stored in hardware.

  • Pruned

  • Original

return CSR[vcsr].VXSAT;
return CSR[vcsr].VXSAT;