Skip to main content

CbReason

Enum CbReason 

Source
#[repr(u32)]
pub enum CbReason {
Show 72 variants ValueChange = 1, Stmt = 2, Force = 3, Release = 4, AtStartOfSimTime = 5, ReadWriteSynch = 6, ReadOnlySynch = 7, NextSimTime = 8, AfterDelay = 9, EndOfCompile = 10, StartOfSimulation = 11, EndOfSimulation = 12, Error = 13, TchkViolation = 14, StartOfSave = 15, EndOfSave = 16, StartOfRestart = 17, EndOfRestart = 18, StartOfReset = 19, EndOfReset = 20, EnterInteractive = 21, ExitInteractive = 22, InteractiveScopeChange = 23, UnresolvedSystf = 24, PLIError = 28, Assign = 25, Deassign = 26, Disable = 27, Signal = 29, NBASynch = 30, AtEndOfSimTime = 31, StartOfThread = 600, EndOfThread = 601, EnterThread = 602, StartOfFrame = 603, EndOfFrame = 604, SizeChange = 605, AssertionStart = 606, AssertionSuccess = 607, AssertionFailure = 608, AssertionStepSuccess = 609, AssertionStepFailure = 610, AssertionDisable = 611, AssertionEnable = 612, AssertionReset = 613, AssertionKill = 614, AssertionSysInitialized = 615, AssertionSysOn = 616, AssertionSysOff = 617, AssertionSysEnd = 618, AssertionSysReset = 619, AssertionVacuousSuccess = 657, AssertionDisabledEvaluation = 658, AssertionSysLock = 659, AssertionSysUnlock = 660, AssertionLock = 661, AssertionUnlock = 662, AssertionEnablePassAction = 645, AssertionEnableFailAction = 646, AssertionDisablePassAction = 647, AssertionDisableFailAction = 648, AssertionEnableNonvacuousAction = 649, AssertionDisableVacuousAction = 650, AssertionSysEnablePassAction = 651, AssertionSysEnableFailAction = 652, AssertionSysDisablePassAction = 653, AssertionSysDisableFailAction = 654, AssertionSysEnableNonvacuousAction = 655, AssertionSysDisableVacuousAction = 656, CreateObj = 700, ReclaimObj = 701, EndOfObject = 702,
}
Expand description

VPI callback reasons used when registering simulator callbacks.

These values map directly to vpi_sys::cb* constants.

Variants§

§

ValueChange = 1

Callback on value change.

§

Stmt = 2

Callback on statement execution.

§

Force = 3

Callback on force.

§

Release = 4

Callback on release.

§

AtStartOfSimTime = 5

Callback at the start of the current simulation time.

§

ReadWriteSynch = 6

Callback during the read-write synchronization phase.

§

ReadOnlySynch = 7

Callback during the read-only synchronization phase.

§

NextSimTime = 8

Callback at the next simulation time.

§

AfterDelay = 9

Callback after a delay.

§

EndOfCompile = 10

Callback at the end of compilation.

§

StartOfSimulation = 11

Callback at the start of simulation.

§

EndOfSimulation = 12

Callback at the end of simulation.

§

Error = 13

Callback on error.

§

TchkViolation = 14

Callback on timing-check violation.

§

StartOfSave = 15

Callback at the start of save.

§

EndOfSave = 16

Callback at the end of save.

§

StartOfRestart = 17

Callback at the start of restart.

§

EndOfRestart = 18

Callback at the end of restart.

§

StartOfReset = 19

Callback at the start of reset.

§

EndOfReset = 20

Callback at the end of reset.

§

EnterInteractive = 21

Callback on entry to interactive mode.

§

ExitInteractive = 22

Callback on exit from interactive mode.

§

InteractiveScopeChange = 23

Callback when the interactive scope changes.

§

UnresolvedSystf = 24

Callback on unresolved system task or function lookup.

§

PLIError = 28

Callback on PLI error.

§

Assign = 25

Callback on assignment.

§

Deassign = 26

Callback on deassignment.

§

Disable = 27

Callback on disable.

§

Signal = 29

Callback on signal delivery.

§

NBASynch = 30

Callback during the NBA synchronization phase.

§

AtEndOfSimTime = 31

Callback at the end of the current simulation time.

§

StartOfThread = 600

Available on crate feature sv only.

Callback on thread creation.

§

EndOfThread = 601

Available on crate feature sv only.

Callback on thread termination.

§

EnterThread = 602

Available on crate feature sv only.

Callback on thread reentry.

§

StartOfFrame = 603

Available on crate feature sv only.

Callback on frame creation.

§

EndOfFrame = 604

Available on crate feature sv only.

Callback on frame exit.

§

SizeChange = 605

Available on crate feature sv only.

Callback on array variable size change.

§

AssertionStart = 606

Available on crate feature sv only.

Assertion start.

§

AssertionSuccess = 607

Available on crate feature sv only.

Assertion success.

§

AssertionFailure = 608

Available on crate feature sv only.

Assertion failure.

§

AssertionStepSuccess = 609

Available on crate feature sv only.

Assertion step success.

§

AssertionStepFailure = 610

Available on crate feature sv only.

Assertion step failure.

§

AssertionDisable = 611

Available on crate feature sv only.

Assertion disable.

§

AssertionEnable = 612

Available on crate feature sv only.

Assertion enable.

§

AssertionReset = 613

Available on crate feature sv only.

Assertion reset.

§

AssertionKill = 614

Available on crate feature sv only.

Assertion kill.

§

AssertionSysInitialized = 615

Available on crate feature sv only.

Assertion system initialization.

§

AssertionSysOn = 616

Available on crate feature sv only.

Assertion system on.

§

AssertionSysOff = 617

Available on crate feature sv only.

Assertion system off.

§

AssertionSysEnd = 618

Available on crate feature sv only.

Assertion system end.

§

AssertionSysReset = 619

Available on crate feature sv only.

Assertion system reset.

§

AssertionVacuousSuccess = 657

Available on crate feature sv only.

Assertion vacuous success.

§

AssertionDisabledEvaluation = 658

Available on crate feature sv only.

Assertion disabled evaluation.

§

AssertionSysLock = 659

Available on crate feature sv only.

Assertion system lock.

§

AssertionSysUnlock = 660

Available on crate feature sv only.

Assertion system unlock.

§

AssertionLock = 661

Available on crate feature sv only.

Assertion lock.

§

AssertionUnlock = 662

Available on crate feature sv only.

Assertion unlock.

§

AssertionEnablePassAction = 645

Available on crate feature sv only.

Assertion enable pass action.

§

AssertionEnableFailAction = 646

Available on crate feature sv only.

Assertion enable fail action.

§

AssertionDisablePassAction = 647

Available on crate feature sv only.

Assertion disable pass action.

§

AssertionDisableFailAction = 648

Available on crate feature sv only.

Assertion disable fail action.

§

AssertionEnableNonvacuousAction = 649

Available on crate feature sv only.

Assertion enable non-vacuous action.

§

AssertionDisableVacuousAction = 650

Available on crate feature sv only.

Assertion disable vacuous action.

§

AssertionSysEnablePassAction = 651

Available on crate feature sv only.

Assertion system enable pass action.

§

AssertionSysEnableFailAction = 652

Available on crate feature sv only.

Assertion system enable fail action.

§

AssertionSysDisablePassAction = 653

Available on crate feature sv only.

Assertion system disable pass action.

§

AssertionSysDisableFailAction = 654

Available on crate feature sv only.

Assertion system disable fail action.

§

AssertionSysEnableNonvacuousAction = 655

Available on crate feature sv only.

Assertion system enable non-vacuous action.

§

AssertionSysDisableVacuousAction = 656

Available on crate feature sv only.

Assertion system disable vacuous action.

§

CreateObj = 700

Available on crate feature sv only.

Callback on class object creation.

§

ReclaimObj = 701

Available on crate feature sv only.

Callback on class object reclamation.

§

EndOfObject = 702

Available on crate feature sv only.

Callback on transient object deletion.

Trait Implementations§

Source§

impl Clone for CbReason

Source§

fn clone(&self) -> CbReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CbReason

Source§

impl Debug for CbReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CbReason

Source§

impl FromPrimitive for CbReason

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl PartialEq for CbReason

Source§

fn eq(&self, other: &CbReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CbReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.