Enum rust_hdl_core::simulate::SimError
source · pub enum SimError {
SimTerminated,
MaxTimeReached,
SimHalted,
FailedToConverge,
Check(CheckError),
SimPanic,
}
Expand description
The error type returned by a simulation
Variants§
SimTerminated
The simulation terminated prematurely (i.e., something went wrong)
MaxTimeReached
The simulation reached the maximum allowed time for the simulation
SimHalted
The simulation halted - usually this means an assertion failed
FailedToConverge
The circuit failed to converge. This means the logic has some issue (like an oscillation).
Check(CheckError)
Something went wrong with the circuit check (either a missing connection or other issue, like a latching write).
SimPanic
The simulation panicked. This usually means .unwrap
was called on a result in the testbench.
Trait Implementations§
source§impl From<CheckError> for SimError
impl From<CheckError> for SimError
source§fn from(x: CheckError) -> Self
fn from(x: CheckError) -> Self
Converts to this type from the input type.