Expand description
Traits and constructs for the OpenVM architecture.
Re-exports§
pub use openvm_instructions as instructions;
pub use segment::*;
pub use vm::*;
Modules§
- Runtime execution and segmentation
- Top level VirtualMachine constructor and API.
Structs§
- The most common adapter interface. Performs
NUM_READS
batch reads of sizeREAD_SIZE
andNUM_WRITES
batch writes of sizeWRITE_SIZE
. - An interface that is fully determined during runtime. This should only be used as a last resort when static compile-time guarantees cannot be made.
- Newtype to implement
From
. - Similar to
BasicAdapterInterface
, but it flattens the reads and writes into a single flat array for each - Base system chips. The following don’t execute instructions, but are essential for the VM architecture.
- System-level configuration for the virtual machine. Contains all configuration parameters that are managed by the architecture, including configuration for continuations support.
- SystemPort combines system resources needed by most extensions
- The minimum collection of chips that any VM must have.
- Builder for processing unit. Processing units extend an existing system unit.
Enums§
Constants§
- AIR ID of the Memory Boundary AIR.
- If VM has continuations enabled, all AIRs of MemoryController are added after ConnectorChip. Merkle AIR commits start/final memory states.
- Width of Poseidon2 VM uses.
- Global AIR ID in the VM circuit verifying key.
- ProgramAir is the first AIR so its cached trace should be the first main trace.
- If PublicValuesAir is enabled, its AIR ID is 2. PublicValuesAir is always disabled when continuations is enabled.
Traits§
- A helper trait for downcasting types that may be enums.
- Phantom sub-instructions affect the runtime of the VM and the trace matrix values. However they all have no AIR constraints besides advancing the pc by DEFAULT_PC_STEP.
- The adapter owns all memory accesses and timestamp changes. The adapter AIR should also own
ExecutionBridge
andMemoryBridge
. - The interface between primitive AIR and machine adapter AIR.
- Trait to be implemented on primitive chip to integrate with the machine.
- Configuration for a processor extension.
Functions§
- Generates an AIR proof input of the chip with the given height, if any.
- Returns a Poseidon2 config for the VM.
Type Aliases§
- The base VmChipComplex with only system chips.