data/full_repos/permissive/42434302/ivltests/shellho1.v
1: b'%Warning-WIDTH: data/full_repos/permissive/42434302/ivltests/shellho1.v:49: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 6 bits.\n                                                                          : ... In instance top.bug_test\n top.memory.memory[0] = {top.memory.memory[0],temp};\n                      ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/42434302/ivltests/shellho1.v:72: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 6 bits.\n                                                                          : ... In instance top.bug_test\n top.memory.memory[1] = {top.memory.memory[1],temp};\n                      ^\n%Error: Exiting due to 2 warning(s)\n'
module bug_test;

reg [1:0] temp;

initial begin



 $display("Running first test.\n");



 temp = 2'h3;
 top.memory.memory[0] = {2'h0,temp};
 top.memory.memory[0] = {top.memory.memory[0],temp};


 if (top.memory.memory[0] != {2{temp}}) begin
  $display("ERROR! top.memory.memory[0] failed to get");
  $display("set correctly!");
 end else begin
  $display("PASS! top.memory.memory[0] set correctly.");
 end


 $display("top.memory.memory[0] = %h",top.memory.memory[0]);





 $display("\nRunning second test.\n");



 temp = 2'h3;
 top.memory.memory[1] = {2'h0,temp};
 top.memory.memory[1] = {top.memory.memory[1],temp};


 $display("top.memory.memory[1] = %h",top.memory.memory[1]);


 if (top.memory.memory[1] != {2{temp}}) begin
  $display("ERROR! top.memory.memory[1] failed to get");
  $display("set correctly!");
 end else begin
  $display("PASS! top.memory.memory[1] set correctly.");
 end


 $display("top.memory.memory[1] = %h",top.memory.memory[1]);

 $finish;

end

endmodule
module bug_test;


reg [1:0] temp;

initial begin



 $display("Running first test.\n");



 temp = 2'h3;
 top.memory.memory[0] = {2'h0,temp};
 top.memory.memory[0] = {top.memory.memory[0],temp};


 if (top.memory.memory[0] != {2{temp}}) begin
  $display("ERROR! top.memory.memory[0] failed to get");
  $display("set correctly!");
 end else begin
  $display("PASS! top.memory.memory[0] set correctly.");
 end


 $display("top.memory.memory[0] = %h",top.memory.memory[0]);





 $display("\nRunning second test.\n");



 temp = 2'h3;
 top.memory.memory[1] = {2'h0,temp};
 top.memory.memory[1] = {top.memory.memory[1],temp};


 $display("top.memory.memory[1] = %h",top.memory.memory[1]);


 if (top.memory.memory[1] != {2{temp}}) begin
  $display("ERROR! top.memory.memory[1] failed to get");
  $display("set correctly!");
 end else begin
  $display("PASS! top.memory.memory[1] set correctly.");
 end


 $display("top.memory.memory[1] = %h",top.memory.memory[1]);

 $finish;

end

endmodule