pub enum CovError {
Show 22 variants
NoKernel(KernelId),
BadValue {
ctx: String,
got: String,
},
TooManyValues {
ctx: String,
limit: u128,
},
NonPositiveBins {
bin: String,
n: i128,
},
RealUnsupported {
bin: String,
what: &'static str,
},
RealNeedsBins {
coverpoint: String,
},
RealDefaultArray {
bin: String,
},
WidthTooLarge {
coverpoint: String,
width: u32,
},
TransUnbounded {
bin: String,
what: &'static str,
},
TransZeroLength {
bin: String,
},
TransRepeat {
bin: String,
detail: String,
},
CrossSelect {
cross: String,
detail: String,
},
BadHandle(u64),
UnknownItem {
group: String,
item: String,
},
DuplicateItem {
group: String,
item: String,
},
DefinitionOnlyOption {
option: String,
},
BadDb {
line: usize,
detail: String,
},
UnknownOption(String),
OptionLevel {
option: String,
level: &'static str,
},
OptionType {
option: String,
},
OptionValue {
option: String,
detail: String,
},
Unsupported(String),
}Expand description
Everything the model rejects, loudly.
Variants§
NoKernel(KernelId)
A kernel was needed but the evaluator has none.
BadValue
An expression evaluated to a value of the wrong kind.
TooManyValues
A bin would need more individual values than the model expands.
NonPositiveBins
bins b[N] with N not positive.
RealUnsupported
with/wildcard/transition bins on a real coverpoint (19.5.1, 19.5.2).
RealNeedsBins
A real coverpoint without a single explicit bin (19.5).
RealDefaultArray
A default bin of a real coverpoint with [] or [N] (19.5.1).
WidthTooLarge
A coverpoint wider than MAX_WIDTH.
TransUnbounded
A transition bin that needs a bounded sequence but has a goto or nonconsecutive repetition (19.5.2, 19.5.5, 19.5.6).
TransZeroLength
A transition bin of length 0 (19.5.2).
TransRepeat
A bad repeat range in a transition bin (negative, reversed, zero goto).
CrossSelect
A malformed cross or select expression (an operand that is not crossed,
a bin that does not exist, a non-positive matches), 19.6.
BadHandle(u64)
A handle that names no covergroup instance or type.
UnknownItem
A coverpoint/cross name the covergroup does not declare.
DuplicateItem
Two coverpoints/crosses of one covergroup with the same name.
DefinitionOnlyOption
An option that 19.7/19.7.1 allow only in the covergroup definition, assigned procedurally.
BadDb
A coverage database file that does not parse (19.9), by 1-based line.
UnknownOption(String)
OptionLevel
An option used at a level where Table 19-2/19-3 does not allow it.
OptionType
OptionValue
Unsupported(String)
Valid SystemVerilog the model does not implement (named, never silent).
Trait Implementations§
Source§impl Error for CovError
impl Error for CovError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()