data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv
1: b'%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:23: Unsupported: classes\nclass csr_base_seq extends uvm_reg_sequence #(uvm_sequence #(uvm_reg_item));\n^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:23: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\nclass csr_base_seq extends uvm_reg_sequence #(uvm_sequence #(uvm_reg_item));\n                           ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:24: Define or directive not defined: \'`uvm_object_utils\'\n  `uvm_object_utils(csr_base_seq)\n  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:42: Define or directive not defined: \'`uvm_object_new\'\n  `uvm_object_new\n  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:45: syntax error, unexpected virtual\n  virtual task pre_start();\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:46: Unsupported: super\n    super.pre_start();\n    ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:53: syntax error, unexpected virtual\n  virtual task post_start();\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:54: Unsupported: super\n    super.post_start();\n    ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:60: syntax error, unexpected virtual\n  virtual function void set_csr_test_range();\n          ^~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:74: Define or directive not defined: \'`DV_CHECK_STD_RANDOMIZE_WITH_FATAL\'\n      `DV_CHECK_STD_RANDOMIZE_WITH_FATAL(test_csr_chunk,\n      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:74: syntax error, unexpected \',\'\n      `DV_CHECK_STD_RANDOMIZE_WITH_FATAL(test_csr_chunk,\n                                                       ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:84: Define or directive not defined: \'`uvm_fatal\'\n      `uvm_fatal(`gtn, $sformatf({{"invalid opt +test_csr_chunk=%0d, +num_csr_chunks=%0d "},\n      ^~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:84: Define or directive not defined: \'`gtn\'\n      `uvm_fatal(`gtn, $sformatf({{"invalid opt +test_csr_chunk=%0d, +num_csr_chunks=%0d "},\n                 ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:84: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n      `uvm_fatal(`gtn, $sformatf({{"invalid opt +test_csr_chunk=%0d, +num_csr_chunks=%0d "},\n                     ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:95: Define or directive not defined: \'`uvm_info\'\n    `uvm_info(`gtn, $sformatf("testing %0d csrs [%0d - %0d] in all supplied models",\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:95: Define or directive not defined: \'`gtn\'\n    `uvm_info(`gtn, $sformatf("testing %0d csrs [%0d - %0d] in all supplied models",\n              ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:95: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n    `uvm_info(`gtn, $sformatf("testing %0d csrs [%0d - %0d] in all supplied models",\n                  ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:98: Define or directive not defined: \'`uvm_info\'\n      `uvm_info(`gtn, $sformatf("test_csrs list: %0s, reset: 0x%0x", test_csrs[i].get_full_name(),\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:98: Define or directive not defined: \'`gtn\'\n      `uvm_info(`gtn, $sformatf("test_csrs list: %0s, reset: 0x%0x", test_csrs[i].get_full_name(),\n                ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:115: syntax error, unexpected endfunction\n  endfunction\n  ^~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:126: Define or directive not defined: \'`uvm_object_utils\'\n  `uvm_object_utils(csr_hw_reset_seq)\n  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:128: Define or directive not defined: \'`uvm_object_new\'\n  `uvm_object_new\n  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:130: syntax error, unexpected virtual\n  virtual task body();\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:132: syntax error, unexpected IDENTIFIER\n      uvm_reg_data_t compare_mask;\n                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:136: Define or directive not defined: \'`uvm_info\'\n        `uvm_info(`gtn, $sformatf("Skipping register %0s due to CsrExclInitCheck exclusion",\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:136: Define or directive not defined: \'`gtn\'\n        `uvm_info(`gtn, $sformatf("Skipping register %0s due to CsrExclInitCheck exclusion",\n                  ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:136: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n        `uvm_info(`gtn, $sformatf("Skipping register %0s due to CsrExclInitCheck exclusion",\n                      ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:141: Define or directive not defined: \'`uvm_info\'\n      `uvm_info(`gtn, $sformatf("Verifying reset value of register %0s",\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:141: Define or directive not defined: \'`gtn\'\n      `uvm_info(`gtn, $sformatf("Verifying reset value of register %0s",\n                ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:141: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n      `uvm_info(`gtn, $sformatf("Verifying reset value of register %0s",\n                    ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:151: syntax error, unexpected endtask\n  endtask\n  ^~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:163: Define or directive not defined: \'`uvm_object_utils\'\n  `uvm_object_utils(csr_write_seq)\n  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:165: Define or directive not defined: \'`uvm_object_new\'\n  `uvm_object_new\n  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:167: syntax error, unexpected virtual\n  virtual task body();\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:172: syntax error, unexpected IDENTIFIER\n      bkdr_reg_path_e path_kind;\n                      ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:174: syntax error, unexpected ::, expecting \';\'\n      hdl_check_seq = uvm_reg_mem_hdl_paths_seq::type_id::create("hdl_check_seq");\n                                               ^~\n                                                                                                                                              : ... Perhaps \'uvm_reg_mem_hdl_paths_seq\' is a package which needs to be predeclared? (IEEE 1800-2017 26.3)\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:190: syntax error, unexpected IDENTIFIER\n      dv_base_reg dv_csr;\n                  ^~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:194: Define or directive not defined: \'`uvm_info\'\n        `uvm_info(`gtn, $sformatf("Skipping register %0s due to CsrExclWrite exclusion",\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:194: Define or directive not defined: \'`gtn\'\n        `uvm_info(`gtn, $sformatf("Skipping register %0s due to CsrExclWrite exclusion",\n                  ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:194: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n        `uvm_info(`gtn, $sformatf("Skipping register %0s due to CsrExclWrite exclusion",\n                      ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:199: Define or directive not defined: \'`uvm_info\'\n      `uvm_info(`gtn, $sformatf("Writing random data to register %0s",\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:199: Define or directive not defined: \'`gtn\'\n      `uvm_info(`gtn, $sformatf("Writing random data to register %0s",\n                ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:199: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n      `uvm_info(`gtn, $sformatf("Writing random data to register %0s",\n                    ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:202: Define or directive not defined: \'`DV_CHECK_STD_RANDOMIZE_FATAL\'\n      `DV_CHECK_STD_RANDOMIZE_FATAL(wdata)\n      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:205: Define or directive not defined: \'`downcast\'\n      `downcast(dv_csr, test_csrs[i])\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:205: syntax error, unexpected \',\'\n      `downcast(dv_csr, test_csrs[i])\n                      ^\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:207: Define or directive not defined: \'`DV_CHECK_STD_RANDOMIZE_WITH_FATAL\'\n        `DV_CHECK_STD_RANDOMIZE_WITH_FATAL(backdoor,\n        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:208: Unsupported: SystemVerilog 2005 reserved word not implemented: \'dist\'\n                                           backdoor dist {0 :/ 7, 1 :/ 3};)\n                                                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:226: Define or directive not defined: \'`uvm_object_utils\'\n  `uvm_object_utils(csr_rw_seq)\n  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/509468557/generators/ibex/src/main/resources/vsrc/ibex/vendor/lowrisc_ip/dv/sv/csr_utils/csr_seq_lib.sv:228: Define or directive not defined: \'`uvm_object_new\'\n  `uvm_object_new\n  ^~~~~~~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n        ... See the manual and https://verilator.org for more assistance.\n'
function void set_csr_test_range();
    int   start_idx;
    int   end_idx;
    int   chunk_size;



    all_csrs.delete();
    foreach (models[i]) begin
      models[i].get_registers(all_csrs);
    end

    if (num_test_csrs != 0) begin
      num_csr_chunks = all_csrs.size / num_test_csrs + 1;
      `DV_CHECK_STD_RANDOMIZE_WITH_FATAL(test_csr_chunk,
          test_csr_chunk inside {[1:num_csr_chunks]};)
    end
    else begin

      void'($value$plusargs("test_csr_chunk=%0d", test_csr_chunk));
      void'($value$plusargs("num_csr_chunks=%0d", num_csr_chunks));
    end

    if (!(test_csr_chunk inside {[1:num_csr_chunks]})) begin
      `uvm_fatal(`gtn, $sformatf({{"invalid opt +test_csr_chunk=%0d, +num_csr_chunks=%0d "},
                                  {"(1 <= test_csr_chunk <= num_csr_chunks)"}},
                                  test_csr_chunk, num_csr_chunks))
    end
    chunk_size = (num_test_csrs != 0) ? num_test_csrs : (all_csrs.size / num_csr_chunks + 1);
    start_idx = (test_csr_chunk - 1) * chunk_size;
    end_idx = test_csr_chunk * chunk_size;
    if (end_idx >= all_csrs.size())
      end_idx = all_csrs.size() - 1;

    test_csrs = all_csrs[start_idx:end_idx];
    `uvm_info(`gtn, $sformatf("testing %0d csrs [%0d - %0d] in all supplied models",
                    test_csrs.size(), start_idx, end_idx), UVM_MEDIUM)
    foreach (test_csrs[i]) begin
      `uvm_info(`gtn, $sformatf("test_csrs list: %0s, reset: 0x%0x", test_csrs[i].get_full_name(),
                                 test_csrs[i].get_mirrored_value()), UVM_HIGH)
    end
    test_csrs.shuffle();
  endfunction
function void set_csr_test_range();

    int   start_idx;
    int   end_idx;
    int   chunk_size;



    all_csrs.delete();
    foreach (models[i]) begin
      models[i].get_registers(all_csrs);
    end

    if (num_test_csrs != 0) begin
      num_csr_chunks = all_csrs.size / num_test_csrs + 1;
      `DV_CHECK_STD_RANDOMIZE_WITH_FATAL(test_csr_chunk,
          test_csr_chunk inside {[1:num_csr_chunks]};)
    end
    else begin

      void'($value$plusargs("test_csr_chunk=%0d", test_csr_chunk));
      void'($value$plusargs("num_csr_chunks=%0d", num_csr_chunks));
    end

    if (!(test_csr_chunk inside {[1:num_csr_chunks]})) begin
      `uvm_fatal(`gtn, $sformatf({{"invalid opt +test_csr_chunk=%0d, +num_csr_chunks=%0d "},
                                  {"(1 <= test_csr_chunk <= num_csr_chunks)"}},
                                  test_csr_chunk, num_csr_chunks))
    end
    chunk_size = (num_test_csrs != 0) ? num_test_csrs : (all_csrs.size / num_csr_chunks + 1);
    start_idx = (test_csr_chunk - 1) * chunk_size;
    end_idx = test_csr_chunk * chunk_size;
    if (end_idx >= all_csrs.size())
      end_idx = all_csrs.size() - 1;

    test_csrs = all_csrs[start_idx:end_idx];
    `uvm_info(`gtn, $sformatf("testing %0d csrs [%0d - %0d] in all supplied models",
                    test_csrs.size(), start_idx, end_idx), UVM_MEDIUM)
    foreach (test_csrs[i]) begin
      `uvm_info(`gtn, $sformatf("test_csrs list: %0s, reset: 0x%0x", test_csrs[i].get_full_name(),
                                 test_csrs[i].get_mirrored_value()), UVM_HIGH)
    end
    test_csrs.shuffle();
  endfunction