rvsim-core 2.0.0

A cycle-level RISC-V 64-bit system simulator.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Vector extension (RVV 1.0) vocabulary.
//!
//! Every domain-specific value in the vector pipeline uses a strict newtype
//! with no implicit conversions, so SEW bytes cannot be confused with SEW
//! bits, element indices with byte offsets, or vector register indices with
//! scalar ones.

mod group;
mod length;
mod vtype;

pub use group::{Eew, ElemIdx, Emul, Nf, VRegIdx};
pub use length::{InvalidVlen, Vl, Vlen, Vlmax};
pub use vtype::{
    LmulGroup, MaskPolicy, Sew, TailPolicy, VectorConfig, Vlmul, VtypeFields, Vxrm, encode_vtype,
    parse_vtype, parse_vtype_with_elen,
};