how can i use this function, it does not work with the following way:
shared variable cov_status : CovPType ;
cov_status.GetCov;
i get the error: ###### /vobs/LibEME/SENSOR_INTERFACE_LIB/slave/HISI2REG/sim/tb/tb_hisi2reg.vhd(978): cov_status.GetCov;** Error: /vobs/LibEME/SENSOR_INTERFACE_LIB/slave/HISI2REG/sim/tb/tb_hisi2reg.vhd(978): No feasible entries for subprogram “GetCov”.
thx alot, now it works. the error message was a bit missleading.
btw, does anybody know how i can get an overall coverage of all coverage points? I think i have to calculat it somehow by myself. i dont think there is an automated way like in specman/e.
Is there maybe a function available/planned that outputs the percentage of the coverage like WriteBin outputs the covered bins on the screen?
GetCov gives you the percentage of coverage of the entire model. The standard version is slightly different than what Matthias posted.
If you want information for an individual bin, see GetBinInfo. You will have to calculate the percentage of each bin, however, it gives you the count and the AtLeast (coverage goal) values. If you also need to correlate that with a BinVal, then also see GetBinVal, and GetBin.