data/full_repos/permissive/42434302/ivltests/pr1978358d.v
1: b"%Error: data/full_repos/permissive/42434302/ivltests/pr1978358d.v:5: syntax error, unexpected var, expecting IDENTIFIER\n  parameter [3:0] var = 4'b1001;\n                  ^~~\n%Error: data/full_repos/permissive/42434302/ivltests/pr1978358d.v:10: syntax error, unexpected var, expecting TYPE-IDENTIFIER\n    part = var[-2 +: 4];   \n           ^~~\n%Error: data/full_repos/permissive/42434302/ivltests/pr1978358d.v:16: syntax error, unexpected var, expecting TYPE-IDENTIFIER\n    part = var[2 +: 4];   \n           ^~~\n%Error: data/full_repos/permissive/42434302/ivltests/pr1978358d.v:22: syntax error, unexpected var, expecting TYPE-IDENTIFIER\n    big = var[-1 +: 6];   \n          ^~~\n%Error: Exiting due to 4 error(s)\n"
module top;
  reg pass = 1'b1;


  parameter [3:0] var = 4'b1001;
  reg [3:0] part;
  reg [5:0] big;

  initial begin
    part = var[-2 +: 4];
    if (part !== 4'b01xx) begin
      $display("part select [1:-2] failed, expected 4'b01xx, got %b", part);
      pass = 1'b0;
    end

    part = var[2 +: 4];
    if (part !== 4'bxx10) begin
      $display("part select [5:2] failed, expected 4'bxx10, got %b", part);
      pass = 1'b0;
    end

    big = var[-1 +: 6];
    if (big !== 6'bx1001x) begin
      $display("part select [4:-1] failed, expected 6'bx1001x, got %b", big);
      pass = 1'b0;
    end

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

  reg pass = 1'b1;


  parameter [3:0] var = 4'b1001;
  reg [3:0] part;
  reg [5:0] big;

  initial begin
    part = var[-2 +: 4];
    if (part !== 4'b01xx) begin
      $display("part select [1:-2] failed, expected 4'b01xx, got %b", part);
      pass = 1'b0;
    end

    part = var[2 +: 4];
    if (part !== 4'bxx10) begin
      $display("part select [5:2] failed, expected 4'bxx10, got %b", part);
      pass = 1'b0;
    end

    big = var[-1 +: 6];
    if (big !== 6'bx1001x) begin
      $display("part select [4:-1] failed, expected 6'bx1001x, got %b", big);
      pass = 1'b0;
    end

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