data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv
1: b'%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:18: Cannot find include file: test_exec.svh\n  `include "test_exec.svh" \n           ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain,data/full_repos/permissive/447976230/test_exec.svh\n             data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain,data/full_repos/permissive/447976230/test_exec.svh.v\n             data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain,data/full_repos/permissive/447976230/test_exec.svh.sv\n             test_exec.svh\n             test_exec.svh.v\n             test_exec.svh.sv\n             obj_dir/test_exec.svh\n             obj_dir/test_exec.svh.v\n             obj_dir/test_exec.svh.sv\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:20: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\n  import PkgTestExec::*;\n         ^~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:70: syntax error, unexpected \'=\', expecting \',\' or \';\'\n  RfnocBlockCtrlBfm #(CHDR_W, ITEM_W) blk_ctrl = new(backend, m_ctrl, s_ctrl);\n                                               ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:73: syntax error, unexpected \'#\', expecting \'.\' or \';\'\n  typedef ChdrData #(CHDR_W, ITEM_W)::chdr_word_t chdr_word_t;\n                   ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:74: syntax error, unexpected \'#\', expecting \'.\' or \';\'\n  typedef ChdrData #(CHDR_W, ITEM_W)::item_t      item_t;\n                   ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:167: Unsupported or unknown PLI call: $urandom_range\n    return signed\'($urandom_range(b - a)) + a;\n                   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:192: syntax error, unexpected TIME NUMBER, expecting \')\'\n    test.start_test("Flush block then reset it", 10us);\n                                                 ^~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:200: syntax error, unexpected TIME NUMBER, expecting \')\'\n    test.start_test("Verify Block Info", 2us);\n                                         ^~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:201: Define or directive not defined: \'`ASSERT_ERROR\'\n    `ASSERT_ERROR(blk_ctrl.get_noc_id() == NOC_ID, "Incorrect NOC_ID Value");\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:201: syntax error, unexpected \',\'\n    `ASSERT_ERROR(blk_ctrl.get_noc_id() == NOC_ID, "Incorrect NOC_ID Value");\n                                                 ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:202: Define or directive not defined: \'`ASSERT_ERROR\'\n    `ASSERT_ERROR(blk_ctrl.get_num_data_i() == NUM_PORTS_I, "Incorrect NUM_DATA_I Value");\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:202: syntax error, unexpected \',\'\n    `ASSERT_ERROR(blk_ctrl.get_num_data_i() == NUM_PORTS_I, "Incorrect NUM_DATA_I Value");\n                                                          ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:203: Define or directive not defined: \'`ASSERT_ERROR\'\n    `ASSERT_ERROR(blk_ctrl.get_num_data_o() == NUM_PORTS_O, "Incorrect NUM_DATA_O Value");\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:203: syntax error, unexpected \',\'\n    `ASSERT_ERROR(blk_ctrl.get_num_data_o() == NUM_PORTS_O, "Incorrect NUM_DATA_O Value");\n                                                          ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:204: Define or directive not defined: \'`ASSERT_ERROR\'\n    `ASSERT_ERROR(blk_ctrl.get_mtu() == MTU, "Incorrect MTU Value");\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:204: syntax error, unexpected \',\'\n    `ASSERT_ERROR(blk_ctrl.get_mtu() == MTU, "Incorrect MTU Value");\n                                           ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:214: syntax error, unexpected TIME NUMBER, expecting \')\'\n      test.start_test("Verify gain register", 5us);\n                                              ^~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:217: Define or directive not defined: \'`ASSERT_ERROR\'\n      `ASSERT_ERROR(\n      ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:218: syntax error, unexpected \',\'\n        val32 == 1, "Initial value for REG_GAIN_ADDR is not 1");\n                  ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:223: Define or directive not defined: \'`ASSERT_ERROR\'\n      `ASSERT_ERROR(\n      ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:224: syntax error, unexpected \',\'\n        val32 == 32\'h8765, "Initial value for REG_GAIN_ADDR is not correct");\n                         ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:233: Unsupported: Static in this context\n      static logic [15:0] test_gains[$] = {\n      ^~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:245: syntax error, unexpected IDENTIFIER\n        item_t send_samples[$];     \n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:250: syntax error, unexpected TIME NUMBER, expecting \')\'\n        test.start_test($sformatf("Test gain of %0d", int\'(gain)), 10us);\n                                                                   ^~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:256: Unsupported: empty queues ("{ }")\n        send_samples = {};\n                       ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:271: Define or directive not defined: \'`ASSERT_ERROR\'\n        `ASSERT_ERROR(recv_samples.size() == SPP,\n        ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:271: syntax error, unexpected \',\'\n        `ASSERT_ERROR(recv_samples.size() == SPP,\n                                                ^\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:276: syntax error, unexpected IDENTIFIER\n          item_t sample_in;\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:286: Define or directive not defined: \'`ASSERT_ERROR\'\n          `ASSERT_ERROR(\n          ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/447976230/host/examples/rfnoc-example/fpga/rfnoc_block_gain/rfnoc_block_gain_tb.sv:287: syntax error, unexpected \',\'\n            sample_out == expected,\n                                  ^\n%Error: Exiting due to 30 error(s)\n'
function shortint rand_shortint(int a, int b);
    return signed'($urandom_range(b - a)) + a;
  endfunction
function shortint rand_shortint(int a, int b);

    return signed'($urandom_range(b - a)) + a;
  endfunction