Vector 8-bit unit-stride load
Loads 8-bit elements from memory starting at address in xs1 register, using vector mask vm, and stores results in vector register vd. The effective element width is 8 bits regardless of SEW setting. Supports vector masking and follows vector tail policy.
vle8.v vd, (xs1), vm
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 000000 | vm | 00000 | xs1 | 000 | vd | 0000 | 111 | ||||||||||||||||||||||||
| Variable | Bits | Width |
|---|---|---|
vm | [25] | 1 |
xs1 | [19:15] | 5 |
vd | [11:7] | 5 |
XReg virtual_address = X[xs1];
# "A simple in-order implementation can ignore the settings and simply execute all vector instructions using the undisturbed policy"
for (U32 i = CSR[vstart].VALUE; i < CSR[vl].VALUE; i++) {
U32 start_bit_pos = i * 8;
U32 end_bit_pos = start_bit_pos + 7;
V[vd][end_bit_pos:start_bit_pos] = read_memory(8, virtual_address + i, $encoding)[7:0];
}
CSR[vstart].VALUE = 0;
Zvl32b
| S | U | VS | VU |
|---|---|---|---|
| Always | Always | Always | Always |
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.