svt_fuzzy_real_comparer Class Reference

Inheritance diagram for class svt_fuzzy_real_comparer:

List of all members.


Detailed Description

Used to extend the basic `SVT_XVM(comparer) abilities for use with SVT based VIP.



Public Member Functions

function bit  compare_field_real ( string name, real lhs, real rhs )
function void  new ( )

Public Attributes

real  fuzzy_compare_precision = SVT_DEFAULT_FUZZY_COMPARE_PRECISION


Member Function Documentation

  function bit
 svt_fuzzy_real_comparer::compare_field_real

 (  string name , real lhs , real rhs  ) 


Used to compare a real field.

name - Name of the field being compared, used for purposes of storing and printing a miscompare.

lhs - The field value for the object doing the compare.

rhs - The field value for the object being compared.

Return values - Indicates whether the compare was a match (1) or a mismatch (0).


 Superseded functions 
 ovm_comparer :: compare_field_real 

  function void
 svt_fuzzy_real_comparer::new

 (   ) 


CONSTRUCTOR: Creates a new instance of the svt_fuzzy_real_comparer class.

Member Attribute Documentation

 real  attribute
 svt_fuzzy_real_comparer::fuzzy_compare_precision = SVT_DEFAULT_FUZZY_COMPARE_PRECISION


Data member to control the precision of the fuzzy compare.