Professional Documents
Culture Documents
Compressed RISC-V Extn Self Study
Compressed RISC-V Extn Self Study
usually treat their ISA as a single entity, which changes to a new version as instructions are added
over time, RISC-V will endeavor to keep the base and each standard extension constant over time,
and instead layer new instructions as further optional extensions. For example, the base integer
ISAs will continue as fully supported standalone ISAs, regardless of any subsequent extensions.
memory address computations wraps around and taken modulo 2power XLEN
Purpose of FENCE.I
cause instruction misalignment to help debugging, and to simplify hardware design for systems
with IALIGN=32, where these are the only places where misalignment can occur.
No integer Computational Instructions cause arithmetic exceptions. But overflow checks are done
with other instructions like bltu blt, slti, slt, bne etc.
FENCE.I Extension
Misaligned Atomics
RVWMO
RV TSO
OP-IMM – addi, sltiu, andi,ori,xori, (slli,srli,srai)- shift amount in 5 bits , nop as addi
x0,x0,0
JALR
BRANCH
MISC-MEM-FENCE
SYSTEM-ECALL, EBREAK
HINT
AUI
LUIPC
HINT
AMO – LR W /D SC W /D - word for 32 BITS and double word for 64 bits – BOTH ARE
IMPLEMENTED FOR RV 64. RV 32 IMPLEMENTS ONLY LR W SC W. In RV 64
Zam
Counters
RVWMO
Ztso
C EXTENSION
IALIGN
ILEN
16 bit aa =00, 01, 10
32 bits – aa = 11 ONLY
Ignore and don’t provide 16 bit C ISE and use aa=00, 01, 10 as non conforming extensions
Endianness
X0 hardwired to zero
X2 – stack pointer
The optional compressed 16-bit instruction format is designed around the assumption that
x1 is the return address register and x2 is the stack pointer. Software using other conventions
Instruction Address Misaligned Exception – in conditional branch case – 16 bit instrn support