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

zip

T1 riscv alu insn
Bit interleave
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zbkb, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZbkb, Zkt-DIT

Summary

Scatters all of the odd and even bits of a source word into the high and low halves of a destination word. It is the inverse of the unzip instruction. This instruction is available only on RV32.

Syntax / Encoding

zip xd, xs1 | 000010001111xxxxx001xxxxx0010011 (mask=0xfff0707f match=0x08f01013)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV000010001111xxxxx001xxxxx00100110xfff0707f / 0x08f01013

Operands

NameDescription
xs1bits [19:15]
xdbits [11:7]