Does SEXT.H access memory?
No. It only reads and writes integer registers; any memory access must be performed by a separate load or store instruction.
Sign-extend halfword
Sign-extends the least-significant 16 bits of rs to XLEN by copying bit 15 to every higher bit. Part of Zbb.
Starts with machine-code field decoding, then shows 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.
SEXT.H reads only rs[15:0], copies bit 15 to all higher bits, and writes the XLEN-wide result to rd.
Understand this scenario with real code like «sext.h x10, x11 ; x10 = sign_ext(x11[15:0])».
No. It only reads and writes integer registers; any memory access must be performed by a separate load or store instruction.
SEXT.H uses bit 15 for every upper rd bit: bit 15=0 fills them with zero, and bit 15=1 fills them with one.