What value does SLTIU write?
It writes 1 when the comparison is true, otherwise 0.
Set rd to 1 if rs1 is less than the immediate (unsigned), else 0
SLTIU compares rs1 (unsigned) with the immediate (sign-extended then treated as unsigned), setting rd to 1 if rs1 < imm, else 0. SLTIU rd,rs1,1 sets rd=1 if rs1==0 (pseudo SEQZ).
Uses the same rhythm as the ADDI page: machine-code fields, fixed-field identification, operand reads, instruction-specific execution, and ISA-visible state update.
The machine code is split by the current instruction format; the animation starts from encoding/decode.
This animation shows ISA-visible decode and state changes, not any specific CPU pipeline, cache, prediction, or timing implementation.
SLTIU performs unsigned comparison rs1 < sign-extended imm; rd is set to 1 when true and 0 otherwise. It turns a comparison result into an integer value usable by later arithmetic or branches.
Understand this scenario with real code like «sltiu x5, x6, 10 # x5 = (x6 < 10) ? 1 : 0 (unsigned)».
It writes 1 when the comparison is true, otherwise 0.
SLT/SLTI compare as signed integers; SLTU/SLTIU compare as unsigned integers.