data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv
1: b"%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:5: Unsupported: classes\nclass ibex_icache_oldval_test extends ibex_icache_base_test;\n^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:5: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\nclass ibex_icache_oldval_test extends ibex_icache_base_test;\n                                      ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:7: Define or directive not defined: '`uvm_component_utils'\n  `uvm_component_utils(ibex_icache_oldval_test)\n  ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:8: Define or directive not defined: '`uvm_component_new'\n  `uvm_component_new\n  ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:18: syntax error, unexpected IDENTIFIER, expecting ')'\n  function void check_phase(uvm_phase phase);\n                                      ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:22: syntax error, unexpected super\n    super.check_phase(phase);\n    ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:27: Define or directive not defined: '`DV_CHECK'\n                                                                                                                                              : ... Suggested alternative: '`SV_COV_CHECK'\n    `DV_CHECK(possible >= 1000,\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:33: Define or directive not defined: '`DV_CHECK_LE_FATAL'\n    `DV_CHECK_LE_FATAL(actual, possible);\n    ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/dv/uvm/icache/dv/tests/ibex_icache_oldval_test.sv:36: Define or directive not defined: '`DV_CHECK'\n                                                                                                                                              : ... Suggested alternative: '`SV_COV_CHECK'\n    `DV_CHECK(frac4 >= 50,\n    ^~~~~~~~~\n%Error: Exiting due to 9 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n"
function void check_phase(uvm_phase phase);
    int unsigned actual, possible;
    int unsigned frac4;

    super.check_phase(phase);

    actual = env.scoreboard.actual_old_count;
    possible = env.scoreboard.possible_old_count;

    `DV_CHECK(possible >= 1000,
              $sformatf({"After an oldval test, we only saw %0d points where we ",
                         "could have returned an old value."},
                        possible))


    `DV_CHECK_LE_FATAL(actual, possible);
    frac4 = (1000 * actual + (possible / 2)) / possible;

    `DV_CHECK(frac4 >= 50,
              $sformatf({"After an oldval test with %0d possible points for an old value, we got ",
                         "one %0d times (%0d.%0d%%). This is less than the 5% minimum threshold."},
                        possible, actual, frac4 / 10, frac4 % 10))

  endfunction
function void check_phase(uvm_phase phase);

    int unsigned actual, possible;
    int unsigned frac4;

    super.check_phase(phase);

    actual = env.scoreboard.actual_old_count;
    possible = env.scoreboard.possible_old_count;

    `DV_CHECK(possible >= 1000,
              $sformatf({"After an oldval test, we only saw %0d points where we ",
                         "could have returned an old value."},
                        possible))


    `DV_CHECK_LE_FATAL(actual, possible);
    frac4 = (1000 * actual + (possible / 2)) / possible;

    `DV_CHECK(frac4 >= 50,
              $sformatf({"After an oldval test with %0d possible points for an old value, we got ",
                         "one %0d times (%0d.%0d%%). This is less than the 5% minimum threshold."},
                        possible, actual, frac4 / 10, frac4 % 10))

  endfunction