data/full_repos/permissive/162251494/pattern.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/162251494/pattern.v:112: Multiple top level modules\n                                                                     : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                     : ... Top module \'pattern\'\nmodule pattern(input clock, input [3:0] state,\n       ^~~~~~~\n                                                                     : ... Top module \'patterndatapath\'\nmodule patterndatapath(input [2:0] load_A, input [2:0] load_B, input [2:0] load_C, input [2:0] load_D,\n       ^~~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/162251494/pattern.v:100: Operator EQ expects 32 or 5 bits on the LHS, but LHS\'s VARREF \'state\' generates 4 bits.\n                                                                  : ... In instance pattern\n  else if(state == 16) begin\n                ^~\n%Error: Exiting due to 2 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