data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh
1: b'%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:19: Unsupported: classes\nclass spi_scoreboard extends uvm_component;\n^~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:19: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\nclass spi_scoreboard extends uvm_component;\n                             ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:21: Define or directive not defined: \'`uvm_component_utils\'\n`uvm_component_utils(spi_scoreboard)\n^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:43: Unsupported: new constructor\nfunction new(string name = "", uvm_component parent = null);\n         ^~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:43: syntax error, unexpected IDENTIFIER, expecting \')\'\nfunction new(string name = "", uvm_component parent = null);\n                                             ^~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:47: syntax error, unexpected IDENTIFIER, expecting \')\'\nfunction void build_phase(uvm_phase phase);\n                                    ^~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:67: syntax error, unexpected IDENTIFIER, expecting \')\'\ntask run_phase(uvm_phase phase);\n                         ^~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:78: syntax error, unexpected IDENTIFIER\n  spi_seq_item item;\n               ^~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:80: syntax error, unexpected IDENTIFIER, expecting "\'{"\n  logic[127:0] tx_data;\n               ^~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:81: syntax error, unexpected IDENTIFIER, expecting "\'{"\n  logic[127:0] mosi_data;\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:82: syntax error, unexpected IDENTIFIER, expecting "\'{"\n  logic[127:0] miso_data;\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:83: syntax error, unexpected IDENTIFIER, expecting "\'{"\n  logic[127:0] rev_miso;\n               ^~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:84: syntax error, unexpected IDENTIFIER, expecting "\'{"\n  logic[127:0] bit_mask;\n               ^~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:85: syntax error, unexpected IDENTIFIER, expecting "\'{"\n  logic[31:0] rx_data;\n              ^~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:125: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n        `uvm_error("SPI_SB_MOSI_LSB:", $sformatf("Expected mosi value %0h actual %0h", tx_data, mosi_data))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:125: syntax error, unexpected \',\'\n        `uvm_error("SPI_SB_MOSI_LSB:", $sformatf("Expected mosi value %0h actual %0h", tx_data, mosi_data))\n                                     ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:129: syntax error, unexpected \';\'\n      for(int i = 0; i < bit_cnt; i++) begin\n                                ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:129: syntax error, unexpected \')\', expecting \';\'\n      for(int i = 0; i < bit_cnt; i++) begin\n                                     ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:139: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n        `uvm_error("SPI_SB_MOSI_MSB:", $sformatf("Expected mosi value %0h actual %0h", tx_data, rev_miso))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:139: syntax error, unexpected \',\'\n        `uvm_error("SPI_SB_MOSI_MSB:", $sformatf("Expected mosi value %0h actual %0h", tx_data, rev_miso))\n                                     ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:173: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:173: syntax error, unexpected \',\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n                                ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:188: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:188: syntax error, unexpected \',\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n                                ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:199: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:199: syntax error, unexpected \',\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n                                ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:211: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:211: syntax error, unexpected \',\'\n        `uvm_error("SPI_SB_RXD:", $sformatf("Bit%0d Expected RX data value %0h actual %0h", i, spi_peek_data[31:0], miso_data))\n                                ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:222: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n      `uvm_error("SPI_SB_CS:", $sformatf("Expected cs value %b actual %b", spi_rm.ss_reg.cs.get(), ~item.cs))\n      ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:222: syntax error, unexpected \',\'\n      `uvm_error("SPI_SB_CS:", $sformatf("Expected cs value %b actual %b", spi_rm.ss_reg.cs.get(), ~item.cs))\n                             ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:227: syntax error, unexpected endtask\nendtask: track_spi\n^~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:232: Define or directive not defined: \'`uvm_info\'\n    `uvm_info("SPI_SB_REPORT:", "No SPI transfers took place", UVM_LOW)\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:232: syntax error, unexpected \',\'\n    `uvm_info("SPI_SB_REPORT:", "No SPI transfers took place", UVM_LOW)\n                              ^\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:235: Define or directive not defined: \'`uvm_info\'\n    `uvm_info("SPI_SB_REPORT:", $sformatf("Test Passed - %0d transfers occured with no errors", no_transfers), UVM_LOW)\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:236: Define or directive not defined: \'`uvm_info\'\n    `uvm_info("** UVM TEST PASSED **", $sformatf("Test Passed - %0d transfers occured with no errors", no_transfers), UVM_LOW)\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:239: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d TX errors occured during %0d transfers", no_tx_errors, no_transfers))\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:242: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d RX errors occured during %0d transfers", no_rx_errors, no_transfers))\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/block_level_tbs/spi_tb/env/spi_scoreboard.svh:245: Define or directive not defined: \'`uvm_error\'\n                                                                                              : ... Suggested alternative: \'`error\'\n    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d CS errors occured during %0d transfers", no_cs_errors, no_transfers))\n    ^~~~~~~~~~\n%Error: Cannot continue\n        ... See the manual and https://verilator.org for more assistance.\n'
function void report_phase(uvm_phase phase);

  if(no_transfers == 0) begin
    `uvm_info("SPI_SB_REPORT:", "No SPI transfers took place", UVM_LOW)
  end
  if((no_cs_errors == 0) && (no_tx_errors == 0) && (no_rx_errors == 0) && (no_transfers > 0)) begin
    `uvm_info("SPI_SB_REPORT:", $sformatf("Test Passed - %0d transfers occured with no errors", no_transfers), UVM_LOW)
    `uvm_info("** UVM TEST PASSED **", $sformatf("Test Passed - %0d transfers occured with no errors", no_transfers), UVM_LOW)
  end
  if(no_tx_errors > 0) begin
    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d TX errors occured during %0d transfers", no_tx_errors, no_transfers))
  end
  if(no_rx_errors > 0) begin
    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d RX errors occured during %0d transfers", no_rx_errors, no_transfers))
  end
  if(no_cs_errors > 0) begin
    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d CS errors occured during %0d transfers", no_cs_errors, no_transfers))
  end

endfunction
function void report_phase(uvm_phase phase);


  if(no_transfers == 0) begin
    `uvm_info("SPI_SB_REPORT:", "No SPI transfers took place", UVM_LOW)
  end
  if((no_cs_errors == 0) && (no_tx_errors == 0) && (no_rx_errors == 0) && (no_transfers > 0)) begin
    `uvm_info("SPI_SB_REPORT:", $sformatf("Test Passed - %0d transfers occured with no errors", no_transfers), UVM_LOW)
    `uvm_info("** UVM TEST PASSED **", $sformatf("Test Passed - %0d transfers occured with no errors", no_transfers), UVM_LOW)
  end
  if(no_tx_errors > 0) begin
    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d TX errors occured during %0d transfers", no_tx_errors, no_transfers))
  end
  if(no_rx_errors > 0) begin
    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d RX errors occured during %0d transfers", no_rx_errors, no_transfers))
  end
  if(no_cs_errors > 0) begin
    `uvm_error("SPI_SB_REPORT:", $sformatf("Test Failed - %0d CS errors occured during %0d transfers", no_cs_errors, no_transfers))
  end

endfunction