data/full_repos/permissive/205055389/test/verga/string1.v
 line:42: before: "("
1: b'%Warning-WIDTH: data/full_repos/permissive/205055389/test/verga/string1.v:12: Operator ASSIGN expects 10 bits on the Assign RHS, but Assign RHS\'s VARREF \'a\' generates 8 bits.\n                                                                            : ... In instance top\n {c,d} = a;\n       ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/205055389/test/verga/string1.v:28: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s MULS generates 32 bits.\n                                                                            : ... In instance top\n   x[8*i +: 8] = (i+1)*(i+1);\n               ^\n%Error: Exiting due to 2 warning(s)\n'
module top;
  reg [7:0] a,b;
  reg [4:0] c,d;
  reg [10*8-1:0] x,y;
  integer i;

  initial
    begin
	a = 8'h42;

	{c,d} = a;
	$display("c=%h  d=%h",c,d);

	b[7:4] = 4'h6;
	b[3:0] = 4'h8;
	$display("b=%h",b);

	{a[3:0],a[7:4]} = a & 8'hff;
	$display("a=%h",a);

	x = "ABCDEFGHIJ";
    	$display("x=%s  x=%h",x,x);
 	for (i = 0;i < 10;i = i+1)
	  $display("x[%d:%d]=%s",8*i+7,8*i,x[8*i +: 8]);

 	for (i = 0;i < 10;i = i+1)
	  x[8*i +: 8] = (i+1)*(i+1);
	$display("x=%h",x);

 	for (i = 0;i < 10;i = i+1)
 	  begin	
	    y[8*i +: 8] = x[8*(9-i) +: 8];
	  end
	$display("y=%020h",y);





	i = 5;
	repeat (i)
	  begin
	    i = 2*(i - 1);
	    $display("hello i = %d",i);
	  end
	$display("done hello");
    end

endmodule
module top;

  reg [7:0] a,b;
  reg [4:0] c,d;
  reg [10*8-1:0] x,y;
  integer i;

  initial
    begin
	a = 8'h42;

	{c,d} = a;
	$display("c=%h  d=%h",c,d);

	b[7:4] = 4'h6;
	b[3:0] = 4'h8;
	$display("b=%h",b);

	{a[3:0],a[7:4]} = a & 8'hff;
	$display("a=%h",a);

	x = "ABCDEFGHIJ";
    	$display("x=%s  x=%h",x,x);
 	for (i = 0;i < 10;i = i+1)
	  $display("x[%d:%d]=%s",8*i+7,8*i,x[8*i +: 8]);

 	for (i = 0;i < 10;i = i+1)
	  x[8*i +: 8] = (i+1)*(i+1);
	$display("x=%h",x);

 	for (i = 0;i < 10;i = i+1)
 	  begin	
	    y[8*i +: 8] = x[8*(9-i) +: 8];
	  end
	$display("y=%020h",y);





	i = 5;
	repeat (i)
	  begin
	    i = 2*(i - 1);
	    $display("hello i = %d",i);
	  end
	$display("done hello");
    end

endmodule