Skip to content

Commit

Permalink
Updating links to RISC-V unprivilege manual
Browse files Browse the repository at this point in the history
  • Loading branch information
nibrunieAtSi5 committed Oct 31, 2024
1 parent 361b65f commit 2161a3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/scalar-crypto.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[[crypto_scalar_instructions]]
== Cryptography Extensions: Scalar & Entropy Source Instructions, Version 1.0.1

=== Changelog
Expand Down
1 change: 1 addition & 0 deletions src/v-st-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ will run. The `vill` bit in `vtype` should be checked after setting
code path should be provided if it is not. Alternatively, a profile
can mandate the minimum SEW at each LMUL setting.

[[vector-register-grouping]]
===== Vector Register Grouping (`vlmul[2:0]`)

Multiple vector registers can be grouped together, so that a single
Expand Down
7 changes: 3 additions & 4 deletions src/vector-crypto.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ A *Vector Element Group* operand or destination has `EMUL = LMUL`.
+
A *Scalar Element Group* operand or destination has `EMUL = ceil(EGW / VLEN)`.
+
The https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc#342-vector-register-grouping-vlmul20[Standard RVV vector register group alignment constraints] apply.
The <<#vector-register-grouping, Standard RVV vector register group alignment constraints>> apply.
[NOTE]
====
Scalar element group operands do not need to be aligned to LMUL for any implementation with VLEN >= EGW.
Expand Down Expand Up @@ -370,7 +370,6 @@ The Vector Crypto Extensions define Vector-Scalar instructions that are similar
Vector Reduction Operations in that they get a scalar operand from a vector register. However, they differ
in that they get a scalar element group
(see <<crypto-vector-element-groups>>)
// link:https://github.com/riscv/riscv-v-spec/blob/master/element_groups.adoc[RISC-V Vector Element Groups])
from `vs2` and they return _vector_ results to `vd`, which is also a source vector operand.
These Vector-Scalar crypto instructions also use the `.vs` suffix in their mnemonics.

Expand Down Expand Up @@ -499,7 +498,7 @@ on _any_ embedded (Zve*) or application ("V") base Vector Extension.
All _cryptography-specific_ instructions defined in this Vector Crypto specification (i.e., those
in <<zvkned>>, <<zvknh,Zvknh[ab]>>, <<Zvkg>>, <<Zvksed>> and <<zvksh>> but _not_ <<zvbb>>,<<zvkb>>, or <<zvbc>>) shall
be executed with data-independent execution latency as defined in the
link:https://github.com/riscv/riscv-crypto/releases/tag/v1.0.1-scalar[RISC-V Scalar Cryptography Extensions specification].
<<#crypto_scalar_instructions,RISC-V Scalar Cryptography Extensions specification>>.
It is important to note that the Vector Crypto instructions are independent of the
implementation of the `Zkt` extension and do not require that `Zkt` is implemented.

Expand Down Expand Up @@ -1015,7 +1014,7 @@ GCM/GMAC extension to enable high-performace SM4-GCM.

The Zvkt extension requires all implemented instructions from the following list to be
executed with data-independent execution latency as defined in the
link:https://github.com/riscv/riscv-crypto/releases/tag/v1.0.1-scalar[RISC-V Scalar Cryptography Extensions specification].
<<#crypto_scalar_instructions,RISC-V Scalar Cryptography Extensions specification>>.

Data-independent execution latency (DIEL) applies to all _data operands_ of an instruction, even those that are not a
part of the body or that are inactive. However, DIEL does not apply
Expand Down

0 comments on commit 2161a3b

Please sign in to comment.