Skip to main content

Property

Enum Property 

Source
#[repr(i32)]
pub enum Property {
Show 120 variants Undefined = -1, Type = 1, Name = 2, FullName = 3, Size = 4, File = 5, LineNo = 6, TopModule = 7, CellInstance = 8, DefName = 9, Protected = 10, TimeUnit = 11, TimePrecision = 12, DefNetType = 13, UnconnDrive = 14, DefFile = 15, DefLineNo = 16, Scalar = 17, Vector = 18, ExplicitName = 19, Direction = 20, ConnByName = 21, NetType = 22, ExplicitScalared = 23, ExplicitVectored = 24, Expanded = 25, ImplicitDecl = 26, ChargeStrength = 27, Array = 28, PortIndex = 29, TermIndex = 30, Strength0 = 31, Strength1 = 32, PrimType = 33, Polarity = 34, DataPolarity = 35, Edge = 36, PathType = 37, TchkType = 38, OpType = 39, ConstType = 40, Blocking = 41, CaseType = 42, NetDeclAssign = 43, FuncType = 44, UserDefn = 45, Scheduled = 46, DefDelayMode = 47, DefDecayTime = 48, Active = 49, Automatic = 50, Cell = 51, Config = 52, ConstantSelect = 53, Decompile = 54, DefAttribute = 55, DelayType = 56, IteratorType = 57, Library = 58, MultiArray = 59, Offset = 60, Resolved = 61, SaveRestartID = 62, SaveRestartLocation = 63, Valid = 64, Signed = 65, Stop = 66, Finish = 67, Reset = 68, SetInteractiveScope = 69, LocalParam = 70, ModPathHasIfNone = 71, IndexedPartSelectType = 72, IsMemory = 73, IsProtected = 74, Top = 600, Unit = 602, JoinType = 603, AccessType = 604, ArrayType = 606, ArrayMember = 607, IsRandomized = 608, LocalVarDecls = 609, RandType = 610, PortType = 611, ConstantVariable = 612, StructUnionMember = 615, Visibility = 620, AlwaysType = 624, DistType = 625, Packed = 630, Tagged = 632, Virtual = 635, HasActual = 636, IsConstraintEnabled = 638, Soft = 639, ClassType = 640, Method = 645, IsClockInferred = 649, Qualifier = 650, InputEdge = 651, OutputEdge = 652, Generic = 653, CompatibilityMode = 654, PackedArrayMember = 655, OpStrong = 656, IsDeferred = 657, AllocScheme = 658, IsCoverSequence = 659, ObjId = 660, StartLine = 661, Column = 662, EndLine = 663, EndColumn = 664, DPIPure = 665, DPIContext = 666, DPICStr = 667, DPICIdentifier = 668, IsModPort = 669, IsFinal = 670,
}
Expand description

VPI property identifiers used with vpi_get and vpi_get_str.

Values map directly to vpi_sys::vpi* property constants.

Variants§

§

Undefined = -1

-1: undefined property

§

Type = 1

1: type of object

§

Name = 2

2: local name of object

§

FullName = 3

3: full hierarchical name

§

Size = 4

4: size of gate, net, port, etc.

§

File = 5

5: file name in which object is used

§

LineNo = 6

6: line number where object is used

§

TopModule = 7

7: top-level module (boolean)

§

CellInstance = 8

8: cell (boolean)

§

DefName = 9

9: module definition name

§

Protected = 10

10: source protected module (boolean)

§

TimeUnit = 11

11: module time unit

§

TimePrecision = 12

12: module time precision

§

DefNetType = 13

13: default net type

§

UnconnDrive = 14

14: unconnected port drive strength

§

DefFile = 15

15: file name where module is defined

§

DefLineNo = 16

16: line number for module definition

§

Scalar = 17

17: scalar (boolean)

§

Vector = 18

18: vector (boolean)

§

ExplicitName = 19

19: port is explicitly named (boolean)

§

Direction = 20

20: direction of port

§

ConnByName = 21

21: connected by name (boolean)

§

NetType = 22

22: net subtypes

§

ExplicitScalared = 23

23: explicitly scalared (boolean)

§

ExplicitVectored = 24

24: explicitly vectored (boolean)

§

Expanded = 25

25: expanded vector net (boolean)

§

ImplicitDecl = 26

26: implicitly declared net (boolean)

§

ChargeStrength = 27

27: charge decay strength of net

§

Array = 28

28: variable array (boolean)

§

PortIndex = 29

29: port index

§

TermIndex = 30

30: index of primitive terminal

§

Strength0 = 31

31: 0-strength of net or gate

§

Strength1 = 32

32: 1-strength of net or gate

§

PrimType = 33

33: primitive subtypes

§

Polarity = 34

34: polarity of module path

§

DataPolarity = 35

35: data path polarity

§

Edge = 36

36: edge type of module path

§

PathType = 37

37: path delay connection subtypes

§

TchkType = 38

38: timing check subtypes

§

OpType = 39

39: operation subtypes (see OpType enum)

§

ConstType = 40

40: constant subtypes

§

Blocking = 41

41: blocking assignment (boolean)

§

CaseType = 42

42: case statement subtypes

§

NetDeclAssign = 43

43: assign part of decl (boolean)

§

FuncType = 44

44: HDL function & system function type

§

UserDefn = 45

45: user-defined system task/func (boolean)

§

Scheduled = 46

46: object still scheduled (boolean)

§

DefDelayMode = 47

47: default delay mode for a module

§

DefDecayTime = 48

48: default decay time for a module

§

Active = 49

49: reentrant task/func frame is active

§

Automatic = 50

50: task/func object is automatic

§

Cell = 51

51: configuration cell

§

Config = 52

52: configuration config file

§

ConstantSelect = 53

53: bit-select/part-select indices are constant

§

Decompile = 54

54: decompile the object

§

DefAttribute = 55

55: attribute defined for the object

§

DelayType = 56

56: delay subtype

§

IteratorType = 57

57: object type of an iterator

§

Library = 58

58: configuration library

§

MultiArray = 59

59: object is a multidimensional array

§

Offset = 60

60: offset from LSB

§

Resolved = 61

61: net subtype after resolution

§

SaveRestartID = 62

62: unique ID for save/restart data

§

SaveRestartLocation = 63

63: name of save/restart data file

§

Valid = 64

64: reentrant task/func frame is valid

§

Signed = 65

65: true for signed objects

§

Stop = 66

66: execute simulator’s $stop, control operation

§

Finish = 67

67: execute simulator’s $finish, control operation

§

Reset = 68

68: execute simulator’s $reset, control operation

§

SetInteractiveScope = 69

69: set simulator’s interactive scope

§

LocalParam = 70

70: true when a param is declared as localparam

§

ModPathHasIfNone = 71

71: Mod path has an ifnone statement

§

IndexedPartSelectType = 72

72: Indexed part-select type

§

IsMemory = 73

73: TRUE for a one-dimensional reg array

§

IsProtected = 74

74: TRUE for protected design information

§

Top = 600

Available on crate feature sv only.

600: top-level module

§

Unit = 602

Available on crate feature sv only.

602: design unit (package, module, etc.)

§

JoinType = 603

Available on crate feature sv only.

603: join type of fork-join block

§

AccessType = 604

Available on crate feature sv only.

604: access type (fork-join, extern, DPI)

§

ArrayType = 606

Available on crate feature sv only.

606: array type (static, dynamic, associative, queue)

§

ArrayMember = 607

Available on crate feature sv only.

607: array member

§

IsRandomized = 608

Available on crate feature sv only.

608: object is randomized

§

LocalVarDecls = 609

Available on crate feature sv only.

609: local variable declarations

§

RandType = 610

Available on crate feature sv only.

610: randomization type (rand, randc, not_rand)

§

PortType = 611

Available on crate feature sv only.

611: interface or modport port type

§

ConstantVariable = 612

Available on crate feature sv only.

612: variable is a constant

§

StructUnionMember = 615

Available on crate feature sv only.

615: struct/union member

§

Visibility = 620

Available on crate feature sv only.

620: visibility of class member (public, protected, local)

§

AlwaysType = 624

Available on crate feature sv only.

624: always block type (always_comb, always_ff, always_latch)

§

DistType = 625

Available on crate feature sv only.

625: distribution constraint type

§

Packed = 630

Available on crate feature sv only.

630: data is packed

§

Tagged = 632

Available on crate feature sv only.

632: tagged union or type

§

Virtual = 635

Available on crate feature sv only.

635: class is virtual

§

HasActual = 636

Available on crate feature sv only.

636: class has actual object

§

IsConstraintEnabled = 638

Available on crate feature sv only.

638: constraint is enabled

§

Soft = 639

Available on crate feature sv only.

639: constraint is soft

§

ClassType = 640

Available on crate feature sv only.

640: type of built-in class

§

Method = 645

Available on crate feature sv only.

645: is a class method

§

IsClockInferred = 649

Available on crate feature sv only.

649: clock is inferred

§

Qualifier = 650

Available on crate feature sv only.

650: qualifier for case/priority

§

InputEdge = 651

Available on crate feature sv only.

651: input edge type

§

OutputEdge = 652

Available on crate feature sv only.

652: output edge type

§

Generic = 653

Available on crate feature sv only.

653: is generic module

§

CompatibilityMode = 654

Available on crate feature sv only.

654: compatibility mode

§

PackedArrayMember = 655

Available on crate feature sv only.

655: packed array member

§

OpStrong = 656

Available on crate feature sv only.

656: strength of temporal operator

§

IsDeferred = 657

Available on crate feature sv only.

657: deferred assertion

§

AllocScheme = 658

Available on crate feature sv only.

658: memory allocation scheme

§

IsCoverSequence = 659

Available on crate feature sv only.

659: is a cover sequence

§

ObjId = 660

Available on crate feature sv only.

660: unique object ID

§

StartLine = 661

Available on crate feature sv only.

661: start line number

§

Column = 662

Available on crate feature sv only.

662: column number

§

EndLine = 663

Available on crate feature sv only.

663: end line number

§

EndColumn = 664

Available on crate feature sv only.

664: end column number

§

DPIPure = 665

Available on crate feature sv only.

665: DPI pure function

§

DPIContext = 666

Available on crate feature sv only.

666: DPI context function

§

DPICStr = 667

Available on crate feature sv only.

667: DPI C string handling

§

DPICIdentifier = 668

Available on crate feature sv only.

668: DPI C identifier

§

IsModPort = 669

Available on crate feature sv only.

669: is a module port

§

IsFinal = 670

Available on crate feature sv only.

670: is a final block

Implementations§

Source§

impl Property

Source

pub const SysFuncType: Self = Property::FuncType

Alias retained for compatibility with legacy naming.

Trait Implementations§

Source§

impl Clone for Property

Source§

fn clone(&self) -> Property

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 Debug for Property

Source§

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

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

impl Eq for Property

Source§

impl FromPrimitive for Property

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 Property

Source§

fn eq(&self, other: &Property) -> 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 Property

Source§

impl ToPrimitive for Property

Source§

fn to_i64(&self) -> Option<i64>

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

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
Source§

fn to_isize(&self) -> Option<isize>

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

fn to_i8(&self) -> Option<i8>

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

fn to_i16(&self) -> Option<i16>

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

fn to_i32(&self) -> Option<i32>

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

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
Source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
Source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
Source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
Source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
Source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
Source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
Source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.