worma Posted October 5, 2010 Report Share Posted October 5, 2010 Hello experts, I am trying to use the uvm_in_order_comparator, inside the scoreboard and looks like the transaction class should have a comp method. Is this comp same as compare?? Any clue how to implement this CLASS: uvm_in_order_comparator #(T,comp_type,convert,pair_type) // // Compares two streams of data objects of type T, a parameter to this class. // These transactions may either be classes or built-in types. To be // successfully compared, the two streams of data must be in the same order. // Apart from that, there are no assumptions made about the relative timing of // the two streams of data. // // Type parameters // // T - Specifies the type of transactions to be compared. // // comp - The type of the comparator to be used to compare the two // transaction streams. // When T is a class, T must implement comp and convert2string, and you must // specify class-based policy classes for comp_type, convert, and pair_type. // In most cases, you can use the convenient subtype, // uvm_in_order_class_comparator #(T). Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.