How do I return an array from a method call in Specman? E.g.
method a : list of uint is {
var data: list of uint;
.....
result = data;
};
extend sys {
var data_sys: list of uint;
run() is also {
data_sys = a();
};
};
My print out shows some elements are different from array data and data_sys. Can you tell me what I missed?