• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
        • Instructions
        • States
        • Decoding
        • Encoding
        • Features
          • Feat-bits
          • Feat
          • Feat->xnum
          • Feat->xlen
          • Feat-64p
          • Feat-32p
        • Semantics
        • Execution
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Riscv

Features

RISC-V features.

The RISC-V ISA is really a family of ISAs: there is a choice of base (RV32I, RV64I, RV32E, RV64E), and there are choices of extensions. There is also a choice of little or big endian memory access (for data; instruction access is always little endian [ISA:1.5.1]). Perhaps less obvious, there is also a choice of which parts of the address space are readable and/or writable.

For a general model of the RISC-V ISA, we want to accommodate all the possible choices. Towards that goal, we introduce a notion of `features', which define these choices; we start with only some choices, which we plan to extend it with more choices.

Subtopics

Feat-bits
Fixtype of RISC-V feature choices for 32 or 64 bits.
Feat
Fixtype of RISC-V feature choices.
Feat->xnum
The number of x registers.
Feat->xlen
The XLEN parameter [ISA:1.3].
Feat-64p
Check if the features indicate 64 bits.
Feat-32p
Check if the features indicate 32 bits.