data/full_repos/permissive/143278/ivltests/specparam2.v
 line:3: before: "="
1: b"%Error: data/full_repos/permissive/143278/ivltests/specparam2.v:7: Can't find definition of variable: 'sp2'\n                                                                 : ... Suggested alternative: 'lp2'\nlocalparam      lp1 = {sp2{1'b1}};\n                       ^~~\n%Error: data/full_repos/permissive/143278/ivltests/specparam2.v:8: Can't find definition of variable: 'sp3'\n                                                                 : ... Suggested alternative: 'sp2'\nlocalparam      lp2 = sp3[sp1 +: sp2];\n                      ^~~\n%Error: data/full_repos/permissive/143278/ivltests/specparam2.v:8: Can't find definition of variable: 'sp1'\n                                                                 : ... Suggested alternative: 'lp1'\nlocalparam      lp2 = sp3[sp1 +: sp2];\n                          ^~~\n%Error: Exiting due to 3 error(s)\n"
module test();

specparam       sp1 = 1;
specparam       sp2 = 2;
specparam [3:0] sp3 = 4'b0101;

localparam      lp1 = {sp2{1'b1}};
localparam      lp2 = sp3[sp1 +: sp2];

reg pass = 1;

initial begin
  $display("%b", lp1);
  if (($bits(lp1) != 2) || (lp1 !== 2'b11)) pass = 0;
  $display("%b", lp2);
  if (($bits(lp2) != 2) || (lp2 !== 2'b10)) pass = 0;

  if (pass)
    $display("PASSED");
  else
    $display("FAILED");
end

endmodule
module test();


specparam       sp1 = 1;
specparam       sp2 = 2;
specparam [3:0] sp3 = 4'b0101;

localparam      lp1 = {sp2{1'b1}};
localparam      lp2 = sp3[sp1 +: sp2];

reg pass = 1;

initial begin
  $display("%b", lp1);
  if (($bits(lp1) != 2) || (lp1 !== 2'b11)) pass = 0;
  $display("%b", lp2);
  if (($bits(lp2) != 2) || (lp2 !== 2'b10)) pass = 0;

  if (pass)
    $display("PASSED");
  else
    $display("FAILED");
end

endmodule