How does VLE16FF.V differ from VLE16.V?
The address calculation and EEW are the same; VLE16FF.V differs by its fault-only-first exception rule, where a later active-element fault reduces vl to its index.
Load 16-bit vector elements from x[rs1] with 2-byte unit stride; a synchronous fault after element 0 reduces vl to the faulting element index.
VLE16FF.V is the RISC-V V extension 16-bit unit-stride fault-only-first vector load. Active body elements read memory at x[rs1] + i * 2 bytes and write vd. A synchronous fault on element 0 is reported precisely like a normal load and does not modify vl; a synchronous fault after element 0 reduces vl to the index of the faulting element. With vm=0, v0.t selects accessed elements and masked-off elements do not access memory.
Decode the 16-bit fault-only-first load, then compute each element address as x[rs1] + i * 2.
Teaching context: VLEN=4096, SEW=EEW=16, LMUL=EMUL=m1, VLMAX=256, vstart=0, valid vtype, enabled VS, and ta/ma. Base options are naturally aligned; rs1=x0 fixes the base at 0. Only the selected synchronous-fault scenario is modeled, assuming other selected memory is readable; actual system accessibility is not guaranteed. Per-element steps explain addresses and results, not access order or processor cycles. Inactive/tail elements may retain old values or become all ones; no definite result is shown. Normal completion resets vstart=0.
The animation starts from the 32-bit vector memory encoding and shows the official bit fields: nf, mew, mop, vm, rs2/vs2 or lumop/sumop, width, register fields, and opcode.
VLE16FF.V is still a unit-stride load: active element i uses x[rs1] + i * 2 bytes. Its special feature is the fault-only-first exception boundary: an element-0 fault traps normally, while a later active-element fault reduces vl to the faulting element index.
vd receives EEW=16-bit memory bit patterns; EMUL=(EEW/SEW)×LMUL must be in 1/8..8 with a legal register-group start. Elements are not extended into XLEN-wide scalars.
rs1 is an integer base register; element i uses x[rs1]+i×2 bytes, with base 0 for rs1=x0. v0.t gives vm=0; omitting it gives vm=1.
Require enabled V and valid vtype. Active body elements satisfy vstart≤i<vl and mask enabled; masked vd cannot cover v0. Disabled elements access no memory; inactive/tail follow vma/vta and prestart stays unchanged. VL=0 or vstart≥vl updates no destination.
A synchronous fault on element 0 traps with vl unchanged; one on element i>0 suppresses that trap and sets vl=i. This is the element index, not the first active element. vl may shrink even without a fault; vstart=0 and original vl>0 require processing at least one element.
Active destinations beyond FF trimming but within original vl may receive values unrelated to memory. On an interrupt implementations should keep vl and set vstart; a later debug watchpoint should trigger the debug trap instead of trimming vl.
Assume enabled V/VS, valid e16,m1, VLMAX≥4, AVL=4, and vl=4, vstart=0, ta/ma after vsetvli; destination does not overlap source masks. Memory is readable except for the selected fault; address step=2 bytes: a0=0x8000, v0=[1,0,1,1], mem=[10,20,30,40] → vd=[10,agnostic,30,unreliable], element 3 synchronous fault → vl=3, no fault trap. Agnostic elements may retain old values or become all ones, without guaranteed zeros.
Assume enabled V/VS, valid e16,m1, VLMAX≥4, AVL=4, and vl=4, vstart=0, ta/ma after vsetvli; destination does not overlap source masks. Memory is readable except for the selected fault; address step=2 bytes: a0=0x8000, v0=[1,0,1,1], mem=[10,20,30,40] → vd=[10,agnostic,30,unreliable], element 3 synchronous fault → vl=3, no fault trap. Agnostic elements may retain old values or become all ones, without guaranteed zeros.
Assume enabled V/VS, valid e16,m1, VLMAX≥4, AVL=4, and vl=4, vstart=0, ta/ma after vsetvli; destination does not overlap source masks. Memory is readable except for the selected fault; address step=2 bytes: a0=0x8000, v0=[1,0,1,1], mem=[10,20,30,40] → vd=[10,agnostic,30,unreliable], element 3 synchronous fault → vl=3, no fault trap. Agnostic elements may retain old values or become all ones, without guaranteed zeros.
The address calculation and EEW are the same; VLE16FF.V differs by its fault-only-first exception rule, where a later active-element fault reduces vl to its index.
No. A synchronous exception on element 0 is a precise normal load trap; the instruction does not continue by modifying vl.
No. A masked-off body element performs no memory access, so it cannot become the fault boundary for this instruction.