• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
        • Specification
        • Executable
        • Specialized
          • Specialized-rv64im-le
          • Specialized-rv32im-le
            • Rv32im-le-semantics
              • Exec32-bgeu
              • Exec32-bltu
              • Exec32-blt
              • Exec32-bge
              • Exec32-bne
              • Exec32-beq
              • Exec32-jalr
              • Exec32-branch
              • Exec32-jal
              • Exec32-op
              • Exec32-load
              • Exec32-store
              • Exec32-op-imms
              • Exec32-op-imm
              • Exec32-sra
              • Exec32-sltiu
              • Exec32-xori
              • Exec32-srl
              • Exec32-slti
              • Exec32-remu
              • Exec32-rem
              • Exec32-auipc
              • Exec32-srli
              • Exec32-srai
              • Exec32-sltu
              • Exec32-sll
              • Exec32-ori
              • Exec32-mulhsu
              • Exec32-divu
              • Exec32-div
              • Exec32-andi
              • Exec32-addi
              • Exec32-slt
              • Exec32-slli
              • Exec32-mulhu
              • Exec32-lhu
              • Exec32-xor
              • Exec32-sw
              • Exec32-sh
              • Exec32-mulh
              • Exec32-lh
              • Exec32-lbu
              • Exec32-and
              • Exec32-sub
              • Exec32-sb
              • Exec32-or
              • Exec32-lw
              • Exec32-lb
              • Exec32-mul
              • Exec32-add
              • Exec32-instr
              • Eff32-addr
              • Exec32-lui
            • Rv32im-le-states
            • Rv32im-le-execution
            • Rv32im-le-features
        • Optimized
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
      • Bigmems
      • Builtins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Specialized-rv32im-le

Rv32im-le-semantics

Semantics of instructions for RV32IM.

We define state-transforming functions that model the effect of each instruction on the state.

For now we only support little endian access to memory, in load and store instructions. Also, for now we do no alignment checks.

Subtopics

Exec32-bgeu
Semantics of the BGEU instruction [ISA:2.5.2].
Exec32-bltu
Semantics of the BLTU instruction [ISA:2.5.2].
Exec32-blt
Semantics of the BLT instruction [ISA:2.5.2].
Exec32-bge
Semantics of the BGE instruction [ISA:2.5.2].
Exec32-bne
Semantics of the BNE instruction [ISA:2.5.2].
Exec32-beq
Semantics of the BEQ instruction [ISA:2.5.2].
Exec32-jalr
Semantics of the JALR instruction [ISA:2.5.1].
Exec32-branch
Semantics of the instructions with the BRANCH opcode [ISA:2.5.2].
Exec32-jal
Semantics of the JAL instruction [ISA:2.5.1].
Exec32-op
Semantics of the instructions with the OP opcode [ISA:2.4.2] [ISA:12.1] [ISA:12.2].
Exec32-load
Semantics of the instructions with the LOAD opcode [ISA:2.6].
Exec32-store
Semantics of the instructions with the STORE opcode [ISA:2.6].
Exec32-op-imms
Semantics of the shift instructions with the OP-IMM opcode [ISA:2.4.1].
Exec32-op-imm
Semantics of the non-shift instructions with the OP-IMM opcode [ISA:2.4.1].
Exec32-sra
Semantics of the SRA instruction [ISA:2.4.2].
Exec32-sltiu
Semantics of the SLTIU instruction [ISA:2.4.1].
Exec32-xori
Semantics of the XORI instruction [ISA:2.4.1].
Exec32-srl
Semantics of the SRL instruction [ISA:2.4.2].
Exec32-slti
Semantics of the SLTI instruction [ISA:2.4.1].
Exec32-remu
Semantics of the REMU instruction [ISA:12.2].
Exec32-rem
Semantics of the REM instruction [ISA:12.2].
Exec32-auipc
Semantics of the AUIPC instruction [ISA:2.4.1].
Exec32-srli
Semantics of the SRLI instruction [ISA:2.4.1].
Exec32-srai
Semantics of the SRAI instruction [ISA:2.4.1].
Exec32-sltu
Semantics of the SLTU instruction [ISA:2.4.2].
Exec32-sll
Semantics of the SLL instruction [ISA:2.4.2].
Exec32-ori
Semantics of the ORI instruction [ISA:2.4.1].
Exec32-mulhsu
Semantics of the MULHSU instruction [ISA:12.1].
Exec32-divu
Semantics of the DIVU instruction [ISA:12.2].
Exec32-div
Semantics of the DIV instruction [ISA:12.2].
Exec32-andi
Semantics of the ANDI instruction [ISA:2.4.1].
Exec32-addi
Semantics of the ADDI instruction [ISA:2.4.1].
Exec32-slt
Semantics of the SLT instruction [ISA:2.4.2].
Exec32-slli
Semantics of the SLLI instruction [ISA:2.4.1].
Exec32-mulhu
Semantics of the MULHU instruction [ISA:12.1].
Exec32-lhu
Semantics of the LHU instruction [ISA:2.6].
Exec32-xor
Semantics of the XOR instruction [ISA:2.4.2].
Exec32-sw
Semantics of the SW instruction [ISA:2.6].
Exec32-sh
Semantics of the SH instruction [ISA:2.6].
Exec32-mulh
Semantics of the MULH instruction [ISA:12.1].
Exec32-lh
Semantics of the LH instruction [ISA:2.6].
Exec32-lbu
Semantics of the LBU instruction [ISA:2.6].
Exec32-and
Semantics of the AND instruction [ISA:2.4.2].
Exec32-sub
Semantics of the SUB instruction [ISA:2.4.2].
Exec32-sb
Semantics of the SB instruction [ISA:2.6].
Exec32-or
Semantics of the OR instruction [ISA:2.4.2].
Exec32-lw
Semantics of the LW instruction [ISA:2.6].
Exec32-lb
Semantics of the LB instruction [ISA:2.6].
Exec32-mul
Semantics of the MUL instruction [ISA:12.1].
Exec32-add
Semantics of the ADD instruction [ISA:2.4.2].
Exec32-instr
Semantics of instructions.
Eff32-addr
Effective address for a load or store instruction [ISA:2.6].
Exec32-lui
Semantics of the LUI instruction [ISA:2.4.1].