← Home

vse8.v

Vector 8-bit unit-stride store

Stores 8-bit elements from vector register vs3 to memory starting at address in xs1 register, using vector mask vm. The effective element width is 8 bits regardless of SEW setting.

Assembly format

vse8.v vs3, (xs1), vm

Encoding

313029282726252423222120191817161514131211109876543210
000000vm00000xs1000vs30100111

Decode variables

VariableBitsWidth
vm[25]1
xs1[19:15]5
vs3[11:7]5

Execution

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;
  write_memory(8, virtual_address + i, V[vs3][end_bit_pos:start_bit_pos], $encoding);
}
CSR[vstart].VALUE = 0;

Defined by

Zvl32b

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

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.