SystemVerilog provides the following system tasks and functions to help manage coverage data collection.
$set_coverage_db_name ( name ) :
Sets the filename of the coverage database into which coverage information is saved at the end of a simulation run.
$load_coverage_db ( name ) :
Load from the given filename the cumulative coverage information for all coverage group types.
$get_coverage ( ) :
Returns as a real number in the range 0 to 100 the overall coverage of all coverage group types. This number is computed as described above.