how can i use this function, it does not work with the following way:
shared variable cov_status : CovPType ;
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”.
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.