• 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
            • Write32-xreg
            • Xregfile32
            • Write32-mem-ubyte16-lendian
            • State32
              • State32p
              • State32-fix
              • State32-equiv
              • Make-state32
              • State32->xregfile
              • Change-state32
              • State32->error
              • State32->pc
              • State32->mem
            • Memory32
            • Write32-mem-ubyte32-lendian
            • Write32-pc
            • Write32-mem-ubyte8
            • Read32-mem-ubyte16-lendian
            • Read32-xreg-unsigned
            • Read32-mem-ubyte8
            • Read32-mem-ubyte32-lendian
            • Read32-xreg-signed
            • Inc32-pc
            • Read32-pc
            • Error32p
            • Error32
            • *mem32-size*
          • 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
  • States32

State32

Fixtype of (unprivileged) processor states.

This is a product type introduced by fty::defprod.

Fields
xregfile — xregfile32
pc — ubyte32
mem — memory32
error — booleanp

This consists of the register file, the program counter (which is an unsigned 32-bit integer, addressing the memory space), and the memory. We also include a flag that is set when there is an error; this is an artifact of the model, not part of the RISC-V standard.

Subtopics

State32p
Recognizer for state32 structures.
State32-fix
Fixing function for state32 structures.
State32-equiv
Basic equivalence relation for state32 structures.
Make-state32
Basic constructor macro for state32 structures.
State32->xregfile
Get the xregfile field from a state32.
Change-state32
Modifying constructor for state32 structures.
State32->error
Get the error field from a state32.
State32->pc
Get the pc field from a state32.
State32->mem
Get the mem field from a state32.