• 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
          • Stat
          • Stat-validp
          • Write-memory-unsigned64
          • Write-memory-unsigned32
          • Write-memory-unsigned8
          • Write-memory-unsigned16
          • Read-xreg-unsigned
          • Write-xreg-32
          • States64
          • Write-xreg
          • Read-memory-unsigned8
          • Read-memory-unsigned64
          • Read-memory-unsigned32
          • Read-memory-unsigned16
          • Read-xreg-signed
          • Read-xreg-unsigned32
          • States32
          • Write-pc
          • Read-xreg-signed32
          • Read-pc
          • Inc4-pc
        • Decoding
        • Encoding
        • Features
        • 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

States

Model of states.

Currently we have two similar but slightly different models, one for RV32I and one for RV64I. We are in the process of consolidating them into one model for both; towards that end, we also provide a more generic definition of states here.

Subtopics

Stat
Fixtype of machine states.
Stat-validp
Check if a state is valid with respect to given features.
Write-memory-unsigned64
Write an unsigned 64-bit integer to memory.
Write-memory-unsigned32
Write an unsigned 32-bit integer to memory.
Write-memory-unsigned8
Write an unsigned 8-bit integer to memory.
Write-memory-unsigned16
Write an unsigned 16-bit integer to memory.
Read-xreg-unsigned
Read an unsigned integer from an x register.
Write-xreg-32
Write an integer to the low 32 bit of a 64-bit x register, sign-extending to the high 32 bits of the register.
States64
Model of states for RV64I.
Write-xreg
Write an integer to an x register.
Read-memory-unsigned8
Read an unsigned 8-bit integer from memory.
Read-memory-unsigned64
Read an unsigned 64-bit integer from memory.
Read-memory-unsigned32
Read an unsigned 32-bit integer from memory.
Read-memory-unsigned16
Read an unsigned 16-bit integer from memory.
Read-xreg-signed
Read a signed integer from an x register.
Read-xreg-unsigned32
Read an unsigned 32-bit integer from a 64-bit x register.
States32
Model of states for RV32I.
Write-pc
Write the program counter.
Read-xreg-signed32
Read a signed 32-bit integer from a 64-bit x register.
Read-pc
Read the program counter.
Inc4-pc
Increment the program counter by 4.