Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Made clear that vstart and vcsr are XLEN-bit wide registers.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasanovic committed Dec 22, 2021
1 parent 3ec63c1 commit 8cdce6c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions v-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Alex Solomatnikov, Steve Wallach, Andrew Waterman, Jim Wilson.

=== Make encodings reserved if the same vector register would be read with two or more different EEWs by the same instruction.

=== Made clear that `vstart` and `vcsr` are XLEN-bit wide registers.

:sectnums:

== Introduction
Expand Down Expand Up @@ -527,9 +529,9 @@ settings which require them to be saved and restored.

=== Vector Start Index CSR `vstart`

The `vstart` read-write CSR specifies the index of the first element
to be executed by a vector instruction, as described in Section
<<sec-inactive-defs>>.
The _XLEN_-bit-wide read-write `vstart` CSR specifies the index of the
first element to be executed by a vector instruction, as described in
Section <<sec-inactive-defs>>.

Normally, `vstart` is only written by hardware on a trap on a vector
instruction, with the `vstart` value representing the element on which
Expand Down Expand Up @@ -643,15 +645,15 @@ The `vxsat` bit is mirrored in `vcsr`.
=== Vector Control and Status Register `vcsr`

The `vxrm` and `vxsat` separate CSRs can also be accessed via fields
in the vector control and status CSR, `vcsr`.
in the _XLEN_-bit-wide vector control and status CSR, `vcsr`.

.vcsr layout
[cols=">2,4,10"]
[%autowidth]
|===
| Bits | Name | Description


| XLEN-1:3 | | Reserved
| 2:1 | vxrm[1:0] | Fixed-point rounding mode
| 0 | vxsat | Fixed-point accrued saturation flag
|===
Expand Down

0 comments on commit 8cdce6c

Please sign in to comment.