I am attempting to compare uvm_sequence_item objects in my scoreboard, but I keep getting a NULL-Object reference error. I have do_compare implemented in my transaction class, and I wish to use the uvm_default_comparer.
static uvm_comparer comparer = uvm_default_comparer;
In run_phase…
comparer.sev = UVM_ERROR;
comparer.show_max = 100; //not sure what this value should be
comparer.init();
...
in_buff[compare_count].compare(out_buff[compare_count], comparer);
in_buff and out_buff are two dynamic arrays that are newed with the scoreboard.
function new(string name, uvm_component parent);
super.new(name, parent);
cg = new;
out_buff = new[1];
in_buff = new[1];
endfunction: new
What is wrong with my initilization of the comparer?
Thanks in advance