In reply to deeksha123:
//Another easy way could be write all the expected output vector into a file and make you scoreboard capable to read it back to make comparisons//
//my code snippet
function void write_mon( input sha_seq_item1 act_tr);
//how to store actual data"?
fd1= $fopen(“out.txt”,“r”);
$fscanf(fd1,“%x”,exp_data);//exp_data is not a class based ,so when i compare getting an error
exp_queue.push_back(exp_data);
if(exp_queue.size()>0)
exp_tr=exp_queue.pop_front();
if(act_tr == exp_tr)
begin
$display(“pass”);
end
else
begin
$display(“fail”);
end
check my code once