Expand description
Safe and ergonomic wrappers for selected Verilog VPI APIs.
Macros§
- count_
idents - Counts macro expression arguments at compile time.
- mcd_
println - Formats and writes a line to an
MCD. - printf
format!-style wrapper around [printf].- startup_
routines - Declares the
vlog_startup_routinessymbol required by VPI simulators.
Structs§
- Callback
- Raw callback registration descriptor.
- CbData
- Safe callback data passed to Rust closures.
- Edge
- Edge sensitivity mask values.
- Handle
- Wrapper around a raw VPI object handle.
- Handle
Iterator - Iterator over VPI scan results from
vpi_iterate/vpi_scan. - MCD
- Multi-channel descriptor used by VPI for output streams.
- PutValue
Flags - Flags controlling behavior of
vpi_put_value. - Simulator
Info - Simulator metadata reported by
vpi_get_vlog_info. - Strength
Encoding - Drive-strength and charge encoding flags.
- Strength
Value - Scalar logic value plus drive strengths.
- Timescale
- Represents a module’s timescale information
- VPIError
- Rich error information returned by
vpi_chk_error.
Enums§
- CbReason
- VPI callback reasons used when registering simulator callbacks.
- Const
Type - Literal/constant encoding type.
- Control
- Simulator control operations for
vpi_control. - Direction
- Port direction classification.
- Error
State - Simulation phase/state where an error occurred.
- Func
Type - Function return type classification.
- NetType
- Net type classification for net objects.
- Object
Type - VPI object and relation kinds used with handle traversal APIs.
- OpType
- Operation subtype for expression objects.
- Prim
Type - Primitive instance subtype.
- Property
- VPI property identifiers used with
vpi_getandvpi_get_str. - Scalar
Value - 4-state scalar encodings used by VPI.
- Severity
- Error severity levels reported by VPI.
- SysFunc
Type - System function return type classification.
- Tchk
Type - Timing check subtype.
- Time
- Time value representation used by VPI APIs.
- Value
- High-level value representation returned from or written to VPI objects.
- Value
Type - VPI value format tags used with
vpi_get_valueand related APIs.
Statics§
- MCD_
STDOUT - Standard output MCD descriptor.
Functions§
- check_
error - Alias of
chk_errorfor consistency with rust-vhpi - chk_
error - Checks whether the simulator has a pending VPI error.
- control
- Invokes
vpi_controlwith the selected operation. - get_
top_ module_ timescales - Returns timescale information for top-level modules.
- printf
- Prints a message through the simulator’s
vpi_printf. - register_
cb - Registers a global callback not tied to a specific object handle.
- register_
cb_ with_ time - Registers a time-based callback.
- remove_
cb - Removes a previously registered callback.
- simulator_
info - Returns simulator invocation metadata from
vpi_get_vlog_info. - simulator_
name - Returns the simulator product name.
- simulator_
version - Returns the simulator version string.
- string_
to_ ascii_ cstring - Converts a Rust string into a 7-bit ASCII
CString. - vector_
value_ to_ scalar_ vector - Convert VPI vector values to a vector of scalar values