Does SEXT.H access memory?
It does not access data memory; it reads integer source registers and writes the computed result to rd.
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.
Assumes Zbb is enabled at the selected XLEN, with the fixed register values below and PC=0x2000; fetch succeeds and no asynchronous interrupt occurs. Steps are a teaching decomposition.
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.
RV32 Zbb, x11=0x12348000: sext.h x10, x11 writes x10=0xFFFF8000 (-32768); RV64 writes 0xFFFFFFFFFFFF8000.
It does not access data memory; it reads integer source registers and writes the computed result to rd.
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.