Re-exports§
pub use crate::testbench::AssertionResult;pub use crate::testbench::TestResult;pub use crate::testbench::TestResultDetailed;pub use celox_frontend_sdk as frontend_sdk;pub use backend::wasm_codegen;
Modules§
- native_
backend - Re-exports for the custom native backend (for testing/integration).
- testbench
- Native testbench execution for Veryl
#[test]modules.
Macros§
Structs§
- Appended
Native Image - Result of finding and decoding an image appended to another byte sequence.
- BigUint
- A big unsigned integer type.
- Compilation
Trace - Compilation
Trace Result - Cranelift
Diagnostics - Fine-grained Cranelift backend options beyond the optimization level.
- Cranelift
Options - Fine-grained Cranelift backend options beyond the optimization level.
- Design
Reflection - Diagnostics
Options - Complete explicit diagnostics configuration for a simulator build.
- Elaborated
Design - Backend-neutral semantic design data after hierarchy flattening.
- Event
Ref - Opaque handle to a compiled event (clock / async-reset) function.
Holds the JIT-compiled function pointer directly — no indirection.
Obtained once via
JitBackend::resolve_eventand passed toJitBackend::eval_apply_ff_atfor zero-cost dispatch. - Event
Topology - Source-independent event-domain topology after elaboration.
- Frontend
Artifact - Fully elaborated frontend result. The first SDK version intentionally models one flattened module; hierarchical netlists can be flattened by the producing frontend without affecting runtime signal names.
- Frontend
Lookup - Source-language-independent lookup retained for diagnostics and public paths.
Parser-native IDs are projected into
SourceVarIdbefore this artifact is built and do not cross into runtime metadata. - IOContext
- Injected
Call - One synchronous call into an injected component implementation.
- Injected
Components - Component definitions injected by an embedding API for one simulator.
- Injected
Named Value - Injected
Port - Injected
Result - Effects returned by an injected callback. Outputs are staged using the same component/NBA path as compiled native and Wasm components.
- Instance
Hierarchy - Hierarchical instance tree with resolved signals.
- Instance
Path - Interp
Backend - A
SimBackendthat interprets the laid-out SIR instead of executing generated machine code. - JitBackend
- Laid
OutProgram - Optimized SIR whose physical state layout has been finalized.
- Layout
Requirements - Semantic constraints produced by optimization and consumed when physical state layout is finalized.
- Named
Event - A named event with its resolved ID and event reference.
- Named
Signal - A named signal with its resolved memory reference and metadata.
- Native
Backend - Native
Code Entry - One callable function in a packed native code image.
- Native
Compilation - A code-generated native program that has not been loaded into executable memory or initialized as a simulator yet.
- Native
Diagnostics - Native
Dump Options - Native
Event Ref - Compiled event handle for native backend. Holds the function pointer directly — no indirection at call time.
- Native
Profile Block - One native JIT block selected by an external profile.
- Native
Program Image - Pointer-free native compiler artifact which can be attached to the precompiled Celox runtime.
- Native
Program Instance - One independently mutable instance of a precompiled native program.
- Optimize
Options - Controls which SIR optimization passes are enabled.
- Optimized
Sir - A pre-layout compiler artifact whose SIR optimization pipeline has completed successfully.
- Reflection
Scope - Reflection
Scope Id - Reflection
Signal - Reflection
Signal Id - Resolved
Access - One memory access with its dynamic offset components resolved.
- Runtime
Design - Canonical runtime design model after frontend scheduling.
- Runtime
Diagnostics - Diagnostics owned by the simulator facade and runtime.
- Runtime
Event Drain - Runtime
Format Context - Runtime
Instance - One elaborated runtime instance with direct state-address indices.
- Runtime
Program - Source-independent metadata retained while a compiled design is executing.
- Runtime
Schema - Source-independent runtime diagnostics and observable event descriptions.
- Runtime
Variable - Source-facing metadata for one flattened runtime state object.
- Shared
JitCode - Immutable compilation result that can be shared across simulator instances.
- Shared
Native Code - Shared compiled code for the native backend. Can be cloned (via Arc) to create multiple simulator instances that share the same compiled machine code.
- Signal
Ref - Simulation
- A timed simulation wrapper around the core logic engine.
- Simulator
- The core logic evaluation engine.
- Simulator
Builder - A fluent builder for configuring and initializing a
SimulatororSimulation. - Simulator
Error - A simulator error that may also carry accumulated compilation warnings.
- Simulator
Options - SirDiagnostics
- Diagnostics and additional verification for the SIR optimizer.
- Source
Location - Source
VarId - Frontend-local identity of a source variable within one module.
- Store
Snapshot - Pre-store snapshot of a stored range, used to detect whether a store actually changed any covered bit before enabling comb capture observers.
- Trace
Options - Unoptimized
Sir - Lowered SIR whose backend-independent optimization pipeline has not run.
- Variable
Info - VcdSignal
Desc - Describes a signal for VCD recording.
- VcdWriter
- Wasm
Backend - The runtime WASM backend.
Enums§
- Addr
Lookup Error - Error returned by
RuntimeProgram::get_addrwhen a path-based variable lookup fails. - Clock
Type - Codegen
Error - Structured failure while preparing executable simulator code.
- Compilation
Warning - A non-fatal source diagnostic retained by a successfully built simulator.
- Cranelift
OptLevel - Cranelift backend optimization level.
- Dead
Store Policy - Controls which stores the dead store elimination pass preserves.
- Domain
Kind - Frontend
Artifact Error - Frontend
Diagnostic - Celox-specific source diagnostics produced after Veryl analysis but before source identities are discarded by lowering.
- Injected
Hook - The lifecycle operation requested from an injected component.
- Injected
Value - A value crossing the boundary of an in-process component callback.
- Interp
Error - Why an interpreted execution unit stopped abnormally.
- Lowering
Phase - The compilation phase where an unsupported feature was encountered.
- Memory
Layout Mode - Native
Image Architecture - Native ISA required by an appended program image.
- Native
Image Container Error - Failure while encoding or discovering a native image container.
- Native
Program Load Error - Failure while discovering or attaching a compiler-produced native image.
- Native
Signal Identity - Source-independent identity shared by reflected handles for one signal.
- OptLevel
- Optimization level presets, analogous to GCC’s
-Oflags. - Parser
Error - Port
Type Kind - Regalloc
Algorithm - Register allocator algorithm for the Cranelift backend.
- Reset
Type - Runtime
Error Code - Runtime
Event - Scheduler
Error - Signal
Direction - Simulator
Error Kind - The specific kind of simulator error.
- SirPass
- Individual SIR optimization passes that can be toggled.
- Unit
Exit - Outcome of one interpreted unit invocation.
- Variable
Kind - Source-language-independent role of a frontend variable.
Traits§
- Event
Handle - Marker trait for backend-specific event handles.
- Injected
Component Handler - Synchronous component implementation supplied by an embedding runtime.
- Interp
Machine - Storage and side-effect interface driven by the interpreter.
- SimBackend
- Abstraction over different simulation backends (JIT, WASM, etc.).
Functions§
- compile_
frontend_ to_ sir - Compile an elaborated external-frontend artifact to optimized SIR.
- compile_
to_ sir - Compile Veryl source code to the SIR (Simulation IR) representation.
- execute_
unit - Execute one execution unit on the interpreter.
- get_
byte_ size - register_
static_ component - Registers an in-process Veryl component implementation.
- register_
static_ component_ manifest - Registers the manifest paired with an in-process component implementation.
- render_
diagnostic - Render a
miette::Diagnosticto a plain-text string (no ANSI colors).
Type Aliases§
- Absolute
Addr - Source-independent identity of one elaborated state object.
- Default
Backend - Default simulation backend: custom native when it matches the compilation target, and Cranelift when a host-side cross-codegen feature is enabled.
- Default
Event Ref - Memory
Layout - Runtime
Error Info - SirProgram
- Source
Addr