ISACOV : Ignore OFLOW BIN when check_overflow = 0

This commit is contained in:
Ayoub Jalali 2023-08-04 17:04:45 +02:00
parent bfd77a2b1c
commit bd345e5ceb

View file

@ -549,9 +549,9 @@ covergroup cg_div_special_results(
}
cp_div_arithmetic_overflow : coverpoint instr.rs1_value {
//ignore_bins IGN_OVERFLOW = {[0:$]} with (!check_overflow);
`ifdef UNSUPPORTED_WITH
bins OFLOW = {32'h8000_0000} iff (check_overflow && instr.rs2_value == 32'hffff_ffff); //TODO
ignore_bins IGN_OVERFLOW = cp_div_arithmetic_overflow iff (!check_overflow);
bins OFLOW = {32'h8000_0000} iff (instr.rs2_value == 32'hffff_ffff); //TODO
`else
bins OFLOW = {32'h8000_0000} with (check_overflow) iff (instr.rs2_value == 32'hffff_ffff);
`endif