[source]

Class uvm_pkg::uvm_class_comp

CLASS

uvm_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 provide the method "function bit compare(T rhs)", similar to the uvm_object::compare method.

Parameters

Name

Default value

Description

T

int

Functions

comp(int a, int b)
Parameters:
  • a (int)

  • b (int)