data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv
1: b'%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:22: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  time tck_src = 10ns;\n                 ^~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:23: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  time tck_dst = 10ns;\n                 ^~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:46: syntax error, unexpected TIME NUMBER, expecting \')\'\n    cdc_2phase_tb_delay_injector #(0.8ns) i_dut (.*);\n                                   ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:52: syntax error, unexpected \'=\', expecting \',\' or \';\'\n  mailbox #(int) dst_mbox = new();\n                          ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:59: Unsupported: Static in this context\n    static int num_items, num_clks;\n    ^~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:62: Unsupported: Ignoring delay on this delayed statement.\n    #10ns;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:64: Unsupported: Ignoring delay on this delayed statement.\n    #10ns;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:66: Unsupported: Ignoring delay on this delayed statement.\n    #10ns;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:69: Unsupported: Ignoring delay on this delayed statement.\n      #(tck_src/2);\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:71: Unsupported: Ignoring delay on this delayed statement.\n      #(tck_src/2);\n      ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:78: Unsupported or unknown PLI call: $urandom_range\n        tck_src = $urandom_range(1000, 10000) * 1ps;\n                  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:78: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n        tck_src = $urandom_range(1000, 10000) * 1ps;\n                                                ^~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:85: Unsupported: Static in this context\n    static int num_items, num_clks;\n    ^~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:88: Unsupported: Ignoring delay on this delayed statement.\n    #10ns;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:90: Unsupported: Ignoring delay on this delayed statement.\n    #10ns;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:92: Unsupported: Ignoring delay on this delayed statement.\n    #10ns;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:95: Unsupported: Ignoring delay on this delayed statement.\n      #(tck_dst/2);\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:97: Unsupported: Ignoring delay on this delayed statement.\n      #(tck_dst/2);\n      ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:104: Unsupported or unknown PLI call: $urandom_range\n        tck_dst = $urandom_range(1000, 10000) * 1ps;\n                  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:104: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n        tck_dst = $urandom_range(1000, 10000) * 1ps;\n                                                ^~~\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:112: Unsupported: Ignoring delay on this delayed statement.\n    #(tck_src*0.8);\n    ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:116: syntax error, unexpected \'@\'\n    @(posedge src_clk_i);\n    ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:120: syntax error, unexpected \'@\'\n    @(negedge src_rst_ni);\n    ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:122: syntax error, unexpected \'@\'\n    repeat(3) @(posedge src_clk_i);\n              ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:124: Unsupported: Static in this context\n      static integer stimulus;\n      ^~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:143: Unsupported: Ignoring delay on this delayed statement.\n    #(tck_dst*0.8);\n    ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:147: syntax error, unexpected \'@\'\n    @(posedge dst_clk_i);\n    ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:151: syntax error, unexpected \'@\'\n    @(negedge dst_rst_ni);\n    ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:153: syntax error, unexpected \'@\'\n    repeat(3) @(posedge dst_clk_i);\n              ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:155: Unsupported: Static in this context\n      static integer expected, actual;\n      ^~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:156: Unsupported: Static in this context\n      static int cooldown;\n      ^~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:179: Unsupported or unknown PLI call: $urandom_range\n      cooldown = $urandom_range(0, 40);\n                 ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:180: syntax error, unexpected \'@\'\n      if (cooldown < 20) repeat(cooldown) @(posedge dst_clk_i);\n                                          ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:199: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  parameter time MAX_DELAY = 0ns\n                             ^~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:202: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n  input  logic        src_clk_i,\n  ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:203: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n  input  logic [31:0] src_data_i,\n  ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:204: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n  input  logic        src_valid_i,\n  ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:205: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n  output logic        src_ready_o,\n  ^~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:207: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n  input  logic        dst_rst_ni,\n  ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:208: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n  input  logic        dst_clk_i,\n  ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:209: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n  output logic [31:0] dst_data_o,\n  ^~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:210: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n  output logic        dst_valid_o,\n  ^~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:211: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n  input  logic        dst_ready_i\n  ^~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:218: syntax error, unexpected always\n  always @(async_req_o) begin\n  ^~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:219: Unsupported or unknown PLI call: $urandom_range\n    automatic time d = $urandom_range(0, MAX_DELAY);\n                       ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:220: syntax error, unexpected IDENTIFIER\n    async_req_i <= #d async_req_o;\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:224: Unsupported or unknown PLI call: $urandom_range\n    automatic time d = $urandom_range(0, MAX_DELAY);\n                       ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:225: syntax error, unexpected IDENTIFIER\n    async_ack_i <= #d async_ack_o;\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:230: Unsupported or unknown PLI call: $urandom_range\n      automatic time d = $urandom_range(0, MAX_DELAY);\n                         ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:231: syntax error, unexpected IDENTIFIER\n      async_data_i[i] <= #d async_data_o[i];\n      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:235: syntax error, unexpected \')\', expecting IDENTIFIER or \'=\' or do or final\n  cdc_2phase_src #(logic [31:0]) i_src (\n                               ^\n%Error: data/full_repos/permissive/473423187/hw/rtl/fp_cores/fpnew/src/common_cells/test/cdc_2phase_tb.sv:246: syntax error, unexpected \')\', expecting IDENTIFIER or \'=\' or do or final\n  cdc_2phase_dst #(logic [31:0]) i_dst (\n                               ^\n%Error: Exiting due to 40 error(s), 12 warning(s)\n'
module cdc_2phase_tb_delay_injector #(
  parameter time MAX_DELAY = 0ns
)(
  input  logic        src_rst_ni,
  input  logic        src_clk_i,
  input  logic [31:0] src_data_i,
  input  logic        src_valid_i,
  output logic        src_ready_o,

  input  logic        dst_rst_ni,
  input  logic        dst_clk_i,
  output logic [31:0] dst_data_o,
  output logic        dst_valid_o,
  input  logic        dst_ready_i
);

  logic async_req_o, async_req_i;
  logic async_ack_o, async_ack_i;
  logic [31:0] async_data_o, async_data_i;

  always @(async_req_o) begin
    automatic time d = $urandom_range(0, MAX_DELAY);
    async_req_i <= #d async_req_o;
  end

  always @(async_ack_o) begin
    automatic time d = $urandom_range(0, MAX_DELAY);
    async_ack_i <= #d async_ack_o;
  end

  for (genvar i = 0; i < 32; i++) begin
    always @(async_data_o[i]) begin
      automatic time d = $urandom_range(0, MAX_DELAY);
      async_data_i[i] <= #d async_data_o[i];
    end
  end

  cdc_2phase_src #(logic [31:0]) i_src (
    .rst_ni       ( src_rst_ni   ),
    .clk_i        ( src_clk_i    ),
    .data_i       ( src_data_i   ),
    .valid_i      ( src_valid_i  ),
    .ready_o      ( src_ready_o  ),
    .async_req_o  ( async_req_o  ),
    .async_ack_i  ( async_ack_i  ),
    .async_data_o ( async_data_o )
  );

  cdc_2phase_dst #(logic [31:0]) i_dst (
    .rst_ni       ( dst_rst_ni   ),
    .clk_i        ( dst_clk_i    ),
    .data_o       ( dst_data_o   ),
    .valid_o      ( dst_valid_o  ),
    .ready_i      ( dst_ready_i  ),
    .async_req_i  ( async_req_i  ),
    .async_ack_o  ( async_ack_o  ),
    .async_data_i ( async_data_i )
  );

endmodule
module cdc_2phase_tb_delay_injector #(
  parameter time MAX_DELAY = 0ns
)(
  input  logic        src_rst_ni,
  input  logic        src_clk_i,
  input  logic [31:0] src_data_i,
  input  logic        src_valid_i,
  output logic        src_ready_o,

  input  logic        dst_rst_ni,
  input  logic        dst_clk_i,
  output logic [31:0] dst_data_o,
  output logic        dst_valid_o,
  input  logic        dst_ready_i
);


  logic async_req_o, async_req_i;
  logic async_ack_o, async_ack_i;
  logic [31:0] async_data_o, async_data_i;

  always @(async_req_o) begin
    automatic time d = $urandom_range(0, MAX_DELAY);
    async_req_i <= #d async_req_o;
  end

  always @(async_ack_o) begin
    automatic time d = $urandom_range(0, MAX_DELAY);
    async_ack_i <= #d async_ack_o;
  end

  for (genvar i = 0; i < 32; i++) begin
    always @(async_data_o[i]) begin
      automatic time d = $urandom_range(0, MAX_DELAY);
      async_data_i[i] <= #d async_data_o[i];
    end
  end

  cdc_2phase_src #(logic [31:0]) i_src (
    .rst_ni       ( src_rst_ni   ),
    .clk_i        ( src_clk_i    ),
    .data_i       ( src_data_i   ),
    .valid_i      ( src_valid_i  ),
    .ready_o      ( src_ready_o  ),
    .async_req_o  ( async_req_o  ),
    .async_ack_i  ( async_ack_i  ),
    .async_data_o ( async_data_o )
  );

  cdc_2phase_dst #(logic [31:0]) i_dst (
    .rst_ni       ( dst_rst_ni   ),
    .clk_i        ( dst_clk_i    ),
    .data_o       ( dst_data_o   ),
    .valid_o      ( dst_valid_o  ),
    .ready_i      ( dst_ready_i  ),
    .async_req_i  ( async_req_i  ),
    .async_ack_o  ( async_ack_o  ),
    .async_data_i ( async_data_i )
  );

endmodule