data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv
1: b'%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:12: Cannot find include file: uvm_macros.svh\n  `include "uvm_macros.svh" \n           ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils,data/full_repos/permissive/509468557/uvm_macros.svh\n             data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils,data/full_repos/permissive/509468557/uvm_macros.svh.v\n             data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils,data/full_repos/permissive/509468557/uvm_macros.svh.sv\n             uvm_macros.svh\n             uvm_macros.svh.v\n             uvm_macros.svh.sv\n             obj_dir/uvm_macros.svh\n             obj_dir/uvm_macros.svh.v\n             obj_dir/uvm_macros.svh.sv\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:13: Cannot find include file: dv_macros.svh\n  `include "dv_macros.svh" \n           ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:744: Cannot find include file: csr_seq_lib.sv\n  `include "csr_seq_lib.sv" \n           ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:7: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\n  import uvm_pkg::*;\n         ^~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:21: syntax error, unexpected IDENTIFIER\n  uvm_check_e default_csr_check           = UVM_CHECK;\n  ^~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:27: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\n    uvm_reg         csr;\n    ^~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:42: Unsupported: wait statements\n    wait(outstanding_accesses == 0);\n    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:52: Unsupported: wait statements\n    wait(outstanding_accesses <= max);\n    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:64: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n  function automatic uvm_mem get_mem_by_addr(uvm_reg_block ral, uvm_reg_addr_t addr);\n                             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:68: Define or directive not defined: \'`DV_CHECK_NE_FATAL\'\n    `DV_CHECK_NE_FATAL(mem, null, $sformatf("Can\'t find any mem with addr 0x%0h", addr), msg_id)\n    ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:73: syntax error, unexpected IDENTIFIER, expecting \')\'\n  function automatic string get_mem_access_by_addr(uvm_reg_block ral, uvm_reg_addr_t addr);\n                                                                 ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:79: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n  function automatic uvm_reg_data_t get_reg_fld_mirror_value(uvm_reg_block ral,\n                                    ^~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:81: syntax error, unexpected string, expecting IDENTIFIER or \'=\' or do or final\n                                                             string        field_name  = "");\n                                                             ^~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:81: syntax error, unexpected \')\', expecting \',\' or \';\'\n                                                             string        field_name  = "");\n                                                                                           ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:86: syntax error, unexpected IDENTIFIER\n    csr = ral.get_reg_by_name(reg_name);\n    ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:87: Define or directive not defined: \'`DV_CHECK_NE_FATAL\'\n    `DV_CHECK_NE_FATAL(csr, null, "", msg_id)\n    ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:91: Define or directive not defined: \'`DV_CHECK_NE_FATAL\'\n      `DV_CHECK_NE_FATAL(fld, null, "", msg_id)\n      ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:102: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n  function automatic csr_field_t decode_csr_or_field(input uvm_object ptr);\n                                 ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:108: syntax error, unexpected if\n    if ($cast(csr, ptr)) begin\n    ^~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:108: Unsupported or unknown PLI call: $cast\n    if ($cast(csr, ptr)) begin\n        ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:114: Unsupported or unknown PLI call: $cast\n    else if ($cast(fld, ptr)) begin\n             ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:122: Define or directive not defined: \'`uvm_fatal\'\n      `uvm_fatal(msg_id, $sformatf("ptr %0s is not of type uvm_reg or uvm_reg_field",\n      ^~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:129: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n  function automatic uvm_reg_data_t get_field_val(uvm_reg_field   field,\n                                    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:137: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n  function automatic uvm_reg_data_t get_csr_val_with_updated_field(uvm_reg_field   field,\n                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:147: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_wait(input uvm_reg csr);\n                                        ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:148: Define or directive not defined: \'`uvm_info\'\n    `uvm_info(msg_id, $sformatf("%0s: wait_busy: %0b",\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:151: Define or directive not defined: \'`uvm_info\'\n    `uvm_info(msg_id, $sformatf("%0s: done wait_busy: %0b",\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:155: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_update(input  uvm_reg      csr,\n                                                ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:159: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n                            input  uint         timeout_ns = default_timeout_ns,\n                            ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:161: syntax error, unexpected \')\', expecting \',\' or \';\'\n                            input  bit          en_shadow_wr = 1);\n                                                                ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:174: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_update_sub(input  uvm_reg      csr,\n                                                    ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:179: syntax error, unexpected \')\', expecting \',\' or \';\'\n                                input  bit          en_shadow_wr = 1);\n                                                                    ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:185: syntax error, unexpected fork\n        fork\n        ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:194: Define or directive not defined: \'`DV_CHECK_EQ\'\n              `DV_CHECK_EQ(status, UVM_IS_OK,\n              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:211: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_wr(input uvm_object     ptr,\n                                             ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:216: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n                        input bit            backdoor = 0,\n                        ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:217: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n                        input uint           timeout_ns = default_timeout_ns,\n                        ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:219: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n                        input uvm_reg_map    map = null,\n                        ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:220: syntax error, unexpected \')\', expecting \',\' or \';\'\n                        input bit            en_shadow_wr = 1);\n                                                             ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:229: Define or directive not defined: \'`gmv\'\n        value = get_csr_val_with_updated_field(csr_or_fld.field, `gmv(csr_or_fld.csr), value);\n                                                                 ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:247: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_wr_sub(input uvm_reg        csr,\n                                                 ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:253: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n                            input uvm_reg_map    map = null,\n                            ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:254: syntax error, unexpected \')\', expecting \',\' or \';\'\n                            input bit            en_shadow_wr = 1);\n                                                                 ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:260: syntax error, unexpected fork\n        fork\n        ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:267: Define or directive not defined: \'`DV_CHECK_EQ\'\n              `DV_CHECK_EQ(status, UVM_IS_OK,\n              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:289: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_pre_write_sub(ref uvm_reg csr, bit en_shadow_wr);\n                                               ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:291: Define or directive not defined: \'`downcast\'\n    `downcast(dv_reg, csr, "", fatal, msg_id)\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:299: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_post_write_sub(ref uvm_reg csr, bit en_shadow_wr);\n                                                ^~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:301: Define or directive not defined: \'`downcast\'\n    `downcast(dv_reg, csr, "", fatal, msg_id)\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_utils_pkg.sv:314: syntax error, unexpected IDENTIFIER, expecting \')\'\n  task automatic csr_poke(input uvm_object      ptr,\n                                                ^~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function automatic csr_field_t decode_csr_or_field(input uvm_object ptr);
    uvm_reg       csr;
    uvm_reg_field fld;
    csr_field_t   result;
    string        msg_id = {csr_utils_pkg::msg_id, "::decode_csr_or_field"};

    if ($cast(csr, ptr)) begin

      result.csr = csr;
      result.mask = '1;
      result.shift = 0;
    end
    else if ($cast(fld, ptr)) begin

      result.csr = fld.get_parent();
      result.field = fld;
      result.mask = (1 << fld.get_n_bits()) - 1;
      result.shift = fld.get_lsb_pos();
    end
    else begin
      `uvm_fatal(msg_id, $sformatf("ptr %0s is not of type uvm_reg or uvm_reg_field",
                                   ptr.get_full_name()))
    end
    return result;
  endfunction
function automatic csr_field_t decode_csr_or_field(input uvm_object ptr);

    uvm_reg       csr;
    uvm_reg_field fld;
    csr_field_t   result;
    string        msg_id = {csr_utils_pkg::msg_id, "::decode_csr_or_field"};

    if ($cast(csr, ptr)) begin

      result.csr = csr;
      result.mask = '1;
      result.shift = 0;
    end
    else if ($cast(fld, ptr)) begin

      result.csr = fld.get_parent();
      result.field = fld;
      result.mask = (1 << fld.get_n_bits()) - 1;
      result.shift = fld.get_lsb_pos();
    end
    else begin
      `uvm_fatal(msg_id, $sformatf("ptr %0s is not of type uvm_reg or uvm_reg_field",
                                   ptr.get_full_name()))
    end
    return result;
  endfunction