ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

bseti

T1 riscv alu insn
Single-Bit set (Immediate)
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zbs
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZbs

Summary

Returns xs1 with a single bit set at the index specified in shamt. The index is read from the lower log2(XLEN) bits of shamt. For RV32, the encodings corresponding to shamt[5]=1 are reserved.

Syntax / Encoding

bseti xd, xs1, shamt | 0010100xxxxxxxxxx001xxxxx0010011 (mask=0xfe00707f match=0x28001013)

Binary Encodings (2)

WidthFormatBit PatternMask / Match
32RV320010100xxxxxxxxxx001xxxxx00100110xfe00707f / 0x28001013
32RV64001010xxxxxxxxxxx001xxxxx00100110xfc00707f / 0x28001013

Operands

NameDescription
shamtbits [24:20]
xs1bits [19:15]
xdbits [11:7]