ovm_policies.svh | |
Policy Classes | Policy classes are used to implement polymorphic operations that differ between built-in types and class-based types. |
Policy classes are used to implement polymorphic operations that differ between built-in types and class-based types. Generic components can then be built that work with either classes or built-in types, depending on what policy class is used.
This policy class is used to compare built-in types.
Provides a comp method that compares, AVM-style, the built-in type, T, for which the == operator is defined.
ovm_built_in_comp #(T) | ||||||||
This policy class is used to compare built-in types. | ||||||||
Class Declaration | ||||||||
|
This policy class is used to convert built-in types to strings.
Provides a convert2string method that converts the built-in type, T, to a string using the %p format specifier.
ovm_built_in_converter #(T) | ||||||||
This policy class is used to convert built-in types to strings. | ||||||||
Class Declaration | ||||||||
|
This policy class is used to clone built-in types via the = operator.
Provides a clone metod that returns a copy of the built-in type, T.
ovm_built_in_clone #(T) | ||||||||
This policy class is used to clone built-in types via the = operator. | ||||||||
Class Declaration | ||||||||
|
This policy class is used to compare two objects of the same type.
Provides a comp method that compares two objects of type T. The class T must implement the comp method, to which this class delegates the operation.
ovm_class_comp #(T) | ||||||||
This policy class is used to compare two objects of the same type. | ||||||||
Class Declaration | ||||||||
|
This policy class is used to convert a class object to a string.
Provides a convert2string method that converts the built-in type, T, to a string. The class T must implement the convert2string method, to which this class delegates the operation.
ovm_class_converter #(T) | ||||||||
This policy class is used to convert a class object to a string. | ||||||||
Class Declaration | ||||||||
|
This policy class is used to clone class objects.
Provides a clone metod that returns a copy of the built-in type, T. The class T must implement the clone method, to which this class delegates the operation.
This policy class is used to compare built-in types.
class ovm_built_in_comp #( type T = int )
This policy class is used to convert built-in types to strings.
class ovm_built_in_converter #( type T = int )
This policy class is used to clone built-in types via the = operator.
class ovm_built_in_clone #( type T = int )
This policy class is used to compare two objects of the same type.
class ovm_class_comp #( type T = int )
This policy class is used to convert a class object to a string.
class ovm_class_converter #( type T = int )