Hello,
In my testbench I ran into the requirement to have access to the “BinName”. Therfore I added the impure function GetBinName to CovPType.
Here is the declaration:
impure function GetBinName ( BinIndex : integer ) return string;
Here is the implementation:
impure function GetBinName ( BinIndex : integer ) return string is
variable buf : line;
begin
if CovBinPtr(BinIndex).Name.all /= "" then
swrite(buf, CovBinPtr(BinIndex).Name.all);
else
swrite(buf, "Nameless Bin");
end if;
return buf.all;
end function GetBinName;