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

Requirement

V

Defining extensions

V

Vector Operations

CSR Address

0x9

Length

* 32 when CSR[misa].MXL == 0 * 64 when CSR[misa].MXL == 1

Privilege Mode

U

Format

This CSR format changes dynamically.

vxsat Format when CSR[misa].MXL == 0
Figure 1. vxsat Format when CSR[misa].MXL == 0
vxsat Format when CSR[misa].MXL == 1
Figure 2. vxsat Format when CSR[misa].MXL == 1

Field Summary

Name Location Type Reset Value

vxsat.VALUE

* 31:0 when CSR[mstatus].UXL == 0 * 63:0 when CSR[mstatus].UXL == 1

RW-H

UNDEFINED_LEGAL

Fields

VALUE

Location
  • 31:0 when CSR[mstatus].UXL == 0

  • 63:0 when CSR[mstatus].UXL == 1

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

Reset value

UNDEFINED_LEGAL

Software write

This CSR may store a value that is different from what software attempts to write.

When a software write occurs (e.g., through csrrw), the following determines the written value:

VALUE = return csr_value.VALUE & 1;

Software read

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

return CSR[vcsr].VXSAT;