ovm_policies.svh

Summary
ovm_policies.svh
Policy ClassesPolicy classes are used to implement polymorphic operations that differ between built-in types and class-based types.

Policy Classes

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.

ovm_built_in_comp #(T)

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.

Summary
ovm_built_in_comp #(T)
This policy class is used to compare built-in types.
Class Declaration
class ovm_built_in_comp #(type T = int)

ovm_built_in_converter #(T)

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.

Summary
ovm_built_in_converter #(T)
This policy class is used to convert built-in types to strings.
Class Declaration
class ovm_built_in_converter #(type T = int)

ovm_built_in_clone #(T)

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.

Summary
ovm_built_in_clone #(T)
This policy class is used to clone built-in types via the = operator.
Class Declaration
class ovm_built_in_clone #(type T = int)

ovm_class_comp #(T)

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.

Summary
ovm_class_comp #(T)
This policy class is used to compare two objects of the same type.
Class Declaration
class ovm_class_comp #(type T = int)

ovm_class_converter #(T)

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.

Summary
ovm_class_converter #(T)
This policy class is used to convert a class object to a string.
Class Declaration
class ovm_class_converter #(type T = int)

ovm_class_clone #(T)

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.

class ovm_built_in_comp #(type T = int)
This policy class is used to compare built-in types.
class ovm_built_in_converter #(type T = int)
This policy class is used to convert built-in types to strings.
class ovm_built_in_clone #(type T = int)
This policy class is used to clone built-in types via the = operator.
class ovm_class_comp #(type T = int)
This policy class is used to compare two objects of the same type.
class ovm_class_converter #(type T = int)
This policy class is used to convert a class object to a string.