data/full_repos/permissive/162251494/GuitarHero.v
 line:149: before: "."
1: b'%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:187: Value too large for 6 bit number: 101000\n  else if(x_counter >= 6\'d101000 & y_counter < 7\'b1111000) begin\n                       ^~~~~~~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:453: Operator EQ expects 32 or 5 bits on the LHS, but LHS\'s VARREF \'state\' generates 4 bits.\n                                                                     : ... In instance GuitarHero.pFSM0\n  else if(state == 16) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:278: Operator LTE expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'counter\' generates 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n  else if (counter <= 9 & ~loss) begin\n                   ^~\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:317: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c1Draw <= {c1Curr[28:0], c1Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:318: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c2Draw <= {c2Curr[28:0], c2Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:319: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c3Draw <= {c3Curr[28:0], c3Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:320: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c4Draw <= {c4Curr[28:0], c4Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:315: Operator LTE expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'counter\' generates 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n  else if (counter <= 9 & ~loss) begin\n                   ^~\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:349: Operator GT expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'counter\' generates 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n  if (counter > 9) begin\n              ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:170: Operator ADD expects 8 bits on the LHS, but LHS\'s SEL generates 6 bits.\n                                                                     : ... In instance GuitarHero.p0\n assign X_out[7:0] = x_counter[5:0] + column[1:0]*6\'b101000;\n                                    ^\n%Error: data/full_repos/permissive/162251494/GuitarHero.v:79: Cannot find file containing module: \'keyboard\'\n keyboard kb(.keyboard_clk(PS2_CLK), .keyboard_data(PS2_DAT), .clock50(CLOCK_50), .reset(0), .read(read), .scan_ready(scan_ready), .scan_code(scan_code));\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/162251494,data/full_repos/permissive/162251494/keyboard\n             data/full_repos/permissive/162251494,data/full_repos/permissive/162251494/keyboard.v\n             data/full_repos/permissive/162251494,data/full_repos/permissive/162251494/keyboard.sv\n             keyboard\n             keyboard.v\n             keyboard.sv\n             obj_dir/keyboard\n             obj_dir/keyboard.v\n             obj_dir/keyboard.sv\n%Error: data/full_repos/permissive/162251494/GuitarHero.v:80: Cannot find file containing module: \'oneshot\'\n oneshot pulse(.pulse_out(read), .trigger_in(scan_ready), .clk(CLOCK_50));\n ^~~~~~~\n%Error: data/full_repos/permissive/162251494/GuitarHero.v:133: Cannot find file containing module: \'vga_adapter\'\n vga_adapter VGA(\n ^~~~~~~~~~~\n%Error: Exiting due to 3 error(s), 10 warning(s)\n'
module PatternDatapath(input [2:0] load_A, input [2:0] load_B, input [2:0] load_C, input [2:0] load_D,
							  output reg [9:0] columnA,
							  output reg [9:0] columnB,
							  output reg [9:0] columnC,
							  output reg [9:0] columnD);
	reg [9:0] pattern0 = 10'b0000000000;
	reg [9:0] pattern1 = 10'b0000000010;
	reg [9:0] pattern2 = 10'b1000000000;
	reg [9:0] pattern3 = 10'b1100000000;
	reg [9:0] pattern4 = 10'b1110000000;
	reg [9:0] pattern5 = 10'b1101000000;
	reg [9:0] pattern6 = 10'b1111000000;
	
	always @(*) begin
	   if(load_A == 1)
			columnA <= pattern1;
		else if(load_A == 2)
			columnA <= pattern2;
		else if(load_A == 3)
			columnA <= pattern3;
		else if(load_A == 4)
			columnA <= pattern4;
		else if(load_A == 5)
			columnA <= pattern5;
		else if(load_A == 6)
			columnA <= pattern6;
		else 
			columnA <= pattern0;
	end
	always @(*) begin
		if(load_B == 1)
			columnB <= pattern1;
		else if(load_B == 2)
			columnB <= pattern2;
		else if(load_B == 3)
			columnB <= pattern3;
		else if(load_B == 4)
			columnB <= pattern4;
		else if(load_B == 5)
			columnB <= pattern5;
		else if(load_B == 6)
			columnB <= pattern6;
		else 
			columnB <= pattern0;
	end
	always @(*) begin
		if(load_C == 1)
			columnC<= pattern1;
		else if(load_C == 2)
			columnC <= pattern2;
		else if(load_C == 3)
			columnC <= pattern3;
		else if(load_C== 4)
			columnC <= pattern4;
		else if(load_C == 5)
			columnC <= pattern5;
		else if(load_D == 6)
			columnC <= pattern6;
		else 
			columnC <= pattern0;
	end
	always @(*) begin
		if(load_D == 1)
			columnD <= pattern1;
		else if(load_D == 2)
			columnD <= pattern2;
		else if(load_D == 3)
			columnD <= pattern3;
		else if(load_D == 4)
			columnD <= pattern4;
		else if(load_D == 5)
			columnD <= pattern5;
		else if(load_D == 6)
			columnD <= pattern6;
		else 
			columnD <= pattern0;
	end
	
endmodule
module PatternDatapath(input [2:0] load_A, input [2:0] load_B, input [2:0] load_C, input [2:0] load_D,
							  output reg [9:0] columnA,
							  output reg [9:0] columnB,
							  output reg [9:0] columnC,
							  output reg [9:0] columnD);

	reg [9:0] pattern0 = 10'b0000000000;
	reg [9:0] pattern1 = 10'b0000000010;
	reg [9:0] pattern2 = 10'b1000000000;
	reg [9:0] pattern3 = 10'b1100000000;
	reg [9:0] pattern4 = 10'b1110000000;
	reg [9:0] pattern5 = 10'b1101000000;
	reg [9:0] pattern6 = 10'b1111000000;
	
	always @(*) begin
	   if(load_A == 1)
			columnA <= pattern1;
		else if(load_A == 2)
			columnA <= pattern2;
		else if(load_A == 3)
			columnA <= pattern3;
		else if(load_A == 4)
			columnA <= pattern4;
		else if(load_A == 5)
			columnA <= pattern5;
		else if(load_A == 6)
			columnA <= pattern6;
		else 
			columnA <= pattern0;
	end
	always @(*) begin
		if(load_B == 1)
			columnB <= pattern1;
		else if(load_B == 2)
			columnB <= pattern2;
		else if(load_B == 3)
			columnB <= pattern3;
		else if(load_B == 4)
			columnB <= pattern4;
		else if(load_B == 5)
			columnB <= pattern5;
		else if(load_B == 6)
			columnB <= pattern6;
		else 
			columnB <= pattern0;
	end
	always @(*) begin
		if(load_C == 1)
			columnC<= pattern1;
		else if(load_C == 2)
			columnC <= pattern2;
		else if(load_C == 3)
			columnC <= pattern3;
		else if(load_C== 4)
			columnC <= pattern4;
		else if(load_C == 5)
			columnC <= pattern5;
		else if(load_D == 6)
			columnC <= pattern6;
		else 
			columnC <= pattern0;
	end
	always @(*) begin
		if(load_D == 1)
			columnD <= pattern1;
		else if(load_D == 2)
			columnD <= pattern2;
		else if(load_D == 3)
			columnD <= pattern3;
		else if(load_D == 4)
			columnD <= pattern4;
		else if(load_D == 5)
			columnD <= pattern5;
		else if(load_D == 6)
			columnD <= pattern6;
		else 
			columnD <= pattern0;
	end
	
endmodule