data/full_repos/permissive/42434302/ivltests/pr2166311.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/42434302/ivltests/pr2166311.v:35: Unsupported: Ignoring delay on this delayed statement.\n    #1;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:9: Selection index out of range: 4:3 outside 3:0\n                                                                             : ... In instance top\n  assign part_idx_up[3+:2] = 2\'b01;\n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:10: Selection index out of range: 6:5 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_up[5+:2] = 2\'b01;   \n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:11: Selection index out of range: 9:7 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_up[7+:3] = 3\'b001;  \n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:11: Selection index out of range: 5:3 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_up[7+:3] = 3\'b001;  \n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:16: Selection index out of range: 4:3 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_down[4-:2] = 2\'b10;\n                      ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:17: Selection index out of range: 6:5 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_down[6-:2] = 2\'b10;   \n                      ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:18: Selection index out of range: 9:7 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_down[9-:3] = 3\'b100;  \n                      ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:18: Selection index out of range: 5:3 outside 3:0\n                                                                              : ... In instance top\n  assign part_idx_down[9-:3] = 3\'b100;  \n                      ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:23: Selection index out of range: 4:3 outside 3:0\n                                                                              : ... In instance top\n  assign part_sel[4:3] = 2\'b01;\n                 ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:24: Selection index out of range: 6:5 outside 3:0\n                                                                              : ... In instance top\n  assign part_sel[6:5] = 2\'b01;   \n                 ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:25: Selection index out of range: 9:7 outside 3:0\n                                                                              : ... In instance top\n  assign part_sel[9:7] = 3\'b001;  \n                 ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:25: Selection index out of range: 5:3 outside 3:0\n                                                                              : ... In instance top\n  assign part_sel[9:7] = 3\'b001;  \n                 ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:30: Selection index out of range: 4:3 outside 3:0\n                                                                              : ... In instance top\n  assign ps_array[0][4:3] = 2\'b01;\n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:31: Selection index out of range: 6:5 outside 3:0\n                                                                              : ... In instance top\n  assign ps_array[0][6:5] = 2\'b01;   \n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:32: Selection index out of range: 9:7 outside 3:0\n                                                                              : ... In instance top\n  assign ps_array[0][9:7] = 3\'b001;  \n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr2166311.v:32: Selection index out of range: 5:3 outside 3:0\n                                                                              : ... In instance top\n  assign ps_array[0][9:7] = 3\'b001;  \n                    ^\n%Error: Exiting due to 17 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg pass = 1'b1;
  wire [3:0] part_idx_up, part_idx_down, part_sel;
  wire [3:0] ps_array [1:0];



  assign part_idx_up[1+:2] = 2'b01;
  assign part_idx_up[3+:2] = 2'b01;
  assign part_idx_up[5+:2] = 2'b01;
  assign part_idx_up[7+:3] = 3'b001;



  assign part_idx_down[2-:2] = 2'b10;
  assign part_idx_down[4-:2] = 2'b10;
  assign part_idx_down[6-:2] = 2'b10;
  assign part_idx_down[9-:3] = 3'b100;



  assign part_sel[2:1] = 2'b01;
  assign part_sel[4:3] = 2'b01;
  assign part_sel[6:5] = 2'b01;
  assign part_sel[9:7] = 3'b001;



  assign ps_array[0][2:1] = 2'b01;
  assign ps_array[0][4:3] = 2'b01;
  assign ps_array[0][6:5] = 2'b01;
  assign ps_array[0][9:7] = 3'b001;

  initial begin
    #1;
    if (part_idx_up !== 4'b101z) begin
      $display("Failed +: select, expected 4'b101z, got %b", part_idx_up);
      pass = 1'b0;
    end

    if (part_idx_down !== 4'b010z) begin
      $display("Failed -: select, expected 4'b010z, got %b", part_idx_down);
      pass = 1'b0;
    end

    if (part_sel !== 4'b101z) begin
      $display("Failed const. part select, expected 4'b101z, got %b", part_sel);
      pass = 1'b0;
    end

    if (ps_array[0] !== 4'b101z) begin
      $display("Failed array part select, expected 4'b101z, got %b",
               ps_array[0]);
      pass = 1'b0;
    end

    if (pass) $display("PASSED");
  end
endmodule
module top;

  reg pass = 1'b1;
  wire [3:0] part_idx_up, part_idx_down, part_sel;
  wire [3:0] ps_array [1:0];



  assign part_idx_up[1+:2] = 2'b01;
  assign part_idx_up[3+:2] = 2'b01;
  assign part_idx_up[5+:2] = 2'b01;
  assign part_idx_up[7+:3] = 3'b001;



  assign part_idx_down[2-:2] = 2'b10;
  assign part_idx_down[4-:2] = 2'b10;
  assign part_idx_down[6-:2] = 2'b10;
  assign part_idx_down[9-:3] = 3'b100;



  assign part_sel[2:1] = 2'b01;
  assign part_sel[4:3] = 2'b01;
  assign part_sel[6:5] = 2'b01;
  assign part_sel[9:7] = 3'b001;



  assign ps_array[0][2:1] = 2'b01;
  assign ps_array[0][4:3] = 2'b01;
  assign ps_array[0][6:5] = 2'b01;
  assign ps_array[0][9:7] = 3'b001;

  initial begin
    #1;
    if (part_idx_up !== 4'b101z) begin
      $display("Failed +: select, expected 4'b101z, got %b", part_idx_up);
      pass = 1'b0;
    end

    if (part_idx_down !== 4'b010z) begin
      $display("Failed -: select, expected 4'b010z, got %b", part_idx_down);
      pass = 1'b0;
    end

    if (part_sel !== 4'b101z) begin
      $display("Failed const. part select, expected 4'b101z, got %b", part_sel);
      pass = 1'b0;
    end

    if (ps_array[0] !== 4'b101z) begin
      $display("Failed array part select, expected 4'b101z, got %b",
               ps_array[0]);
      pass = 1'b0;
    end

    if (pass) $display("PASSED");
  end
endmodule