pub struct CoverpointDecl {
pub name: String,
pub ty: TypeInfo,
pub expr: Expr,
pub iff: Option<Expr>,
pub bins: Vec<BinDecl>,
pub enum_values: Option<Vec<(String, i128)>>,
pub options: Vec<(String, Expr)>,
pub type_options: Vec<(String, Expr)>,
}Expand description
A coverpoint (explicit, or the implicit one of a cross operand).
Fields§
§name: String§ty: TypeInfo§expr: ExprSample-time kernel yielding the coverpoint value.
iff: Option<Expr>Coverpoint-level iff (sample-time kernel).
bins: Vec<BinDecl>§enum_values: Option<Vec<(String, i128)>>For an enum-typed coverpoint: every enumerator (name, value) in
declaration order (auto bins are named after them, 19.5.3).
options: Vec<(String, Expr)>option.<name> = <expr> assignments inside the coverpoint, in order.
type_options: Vec<(String, Expr)>type_option.<name> = <expr> assignments inside the coverpoint.
Implementations§
Source§impl CoverpointDecl
impl CoverpointDecl
pub fn new(name: &str, ty: TypeInfo, expr: Expr) -> CoverpointDecl
pub fn bin(self, bin: BinDecl) -> CoverpointDecl
Trait Implementations§
Source§impl Clone for CoverpointDecl
impl Clone for CoverpointDecl
Source§impl Debug for CoverpointDecl
impl Debug for CoverpointDecl
Source§impl PartialEq for CoverpointDecl
impl PartialEq for CoverpointDecl
impl StructuralPartialEq for CoverpointDecl
Auto Trait Implementations§
impl Freeze for CoverpointDecl
impl RefUnwindSafe for CoverpointDecl
impl Send for CoverpointDecl
impl Sync for CoverpointDecl
impl Unpin for CoverpointDecl
impl UnsafeUnpin for CoverpointDecl
impl UnwindSafe for CoverpointDecl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more