data/full_repos/permissive/446623173/system.v
1: b"%Error: data/full_repos/permissive/446623173/system.v:182: Cannot find file containing module: 'FourDigitLEDdriver'\nFourDigitLEDdriver FourDigitLEDdriverINSTANCE(reset, clk, hex3, hex2, hex1, hex0, an3, an2, an1, an0, led_seg, dp);\n^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/446623173,data/full_repos/permissive/446623173/FourDigitLEDdriver\n             data/full_repos/permissive/446623173,data/full_repos/permissive/446623173/FourDigitLEDdriver.v\n             data/full_repos/permissive/446623173,data/full_repos/permissive/446623173/FourDigitLEDdriver.sv\n             FourDigitLEDdriver\n             FourDigitLEDdriver.v\n             FourDigitLEDdriver.sv\n             obj_dir/FourDigitLEDdriver\n             obj_dir/FourDigitLEDdriver.v\n             obj_dir/FourDigitLEDdriver.sv\n%Error: Exiting due to 1 error(s)\n"
module system(
    input clk,
	 input reset,
	 input button,
	 input wire [31:0]message1,
	 input wire [31:0]message2,
    output reg[3:0] hex3,
    output reg[3:0] hex2,
    output reg[3:0] hex1,
    output reg[3:0] hex0
    );


localparam N=4;


reg[N-1:0] q;
wire [N-1:0] q_next;
wire [3:0]array1[7:0];
wire [3:0]array2[7:0];
assign {array1[0],array1[1],array1[2],array1[3],array1[4],array1[5],array1[6],array1[7]}=message1;
assign {array2[0],array2[1],array2[2],array2[3],array2[4],array2[5],array2[6],array2[7]}=message2;

always@(posedge clk ,posedge reset)
if(reset)
	q<=0;
	
always@(button)
		if(button)
			
			case(q)
				4'b0000:
					begin
						hex0 <= array1[0];
						hex1 <= array1[1];
						hex2 <= array1[2];
						hex3 <= array1[3];
						q <= q_next;
					end
				4'b0001:
					begin
						hex0 <= array1[1];
						hex1 <= array1[2];
						hex2 <= array1[3];
						hex3 <= array1[4];
						q <= q_next;
					end
				4'b0010:
					begin
						hex0 <= array1[2];
						hex1 <= array1[3];
						hex2 <= array1[4];
						hex3 <= array1[5];
						q <= q_next;
					end
				4'b0011:
					begin
						hex0 <= array1[3];
						hex1 <= array1[4];
						hex2 <= array1[5];
						hex3 <= array1[6];
						q <= q_next;
					end
				4'b0100:
					begin
						hex0 <= array1[4];
						hex1 <= array1[5];
						hex2 <= array1[6];
						hex3 <= array1[7];
						q <= q_next;
					end
				4'b0101:
					begin
						hex0 <= array1[5];
						hex1 <= array1[6];
						hex2 <= array1[7];
						hex3 <= array2[0];
						q <= q_next;
					end
				4'b0110:
					begin
						hex0 <= array1[6];
						hex1 <= array1[7];
						hex2 <= array2[0];
						hex3 <= array2[1];
						q <= q_next;
					end
				4'b0111:
					begin
						hex0 <= array1[7];
						hex1 <= array2[0];
						hex2 <= array2[1];
						hex3 <= array2[2];
						q <= q_next;
					end
				4'b1000:
					begin
						hex0 <= array2[0];
						hex1 <= array2[1];
						hex2 <= array2[2];
						hex3 <= array2[3];
						q <= q_next;
					end
				4'b1001:
					begin
						hex0 <= array2[1];
						hex1 <= array2[2];
						hex2 <= array2[3];
						hex3 <= array2[4];
						q <= q_next;
					end
				4'b1010:
					begin
						hex0 <= array2[2];
						hex1 <= array2[3];
						hex2 <= array2[4];
						hex3 <= array2[5];
						q <= q_next;
					end
				4'b1011:
					begin
						hex0 <= array2[3];
						hex1 <= array2[4];
						hex2 <= array2[5];
						hex3 <= array2[6];
						q <= q_next;
					end
				4'b1100:
					begin
						hex0 <= array2[4];
						hex1 <= array2[5];
						hex2 <= array2[6];
						hex3 <= array2[7];
						q <= q_next;
					end
				4'b1101:
					begin
						hex0 <= array2[5];
						hex1 <= array2[6];
						hex2 <= array2[7];
						hex3 <= array1[0];
						q <= q_next;
					end
				4'b1110:
					begin
						hex0 <= array2[6];
						hex1 <= array2[7];
						hex2 <= array2[0];
						hex3 <= array1[1];
						q <= q_next;
					end
				4'b1111:
					begin
						hex0 <= array2[7];
						hex1 <= array1[0];
						hex2 <= array1[1];
						hex3 <= array1[2];
						q <= q_next;
					end			
		endcase
assign q_next=q+1;		
FourDigitLEDdriver FourDigitLEDdriverINSTANCE(reset, clk, hex3, hex2, hex1, hex0, an3, an2, an1, an0, led_seg, dp);
endmodule
module system(
    input clk,
	 input reset,
	 input button,
	 input wire [31:0]message1,
	 input wire [31:0]message2,
    output reg[3:0] hex3,
    output reg[3:0] hex2,
    output reg[3:0] hex1,
    output reg[3:0] hex0
    );



localparam N=4;


reg[N-1:0] q;
wire [N-1:0] q_next;
wire [3:0]array1[7:0];
wire [3:0]array2[7:0];
assign {array1[0],array1[1],array1[2],array1[3],array1[4],array1[5],array1[6],array1[7]}=message1;
assign {array2[0],array2[1],array2[2],array2[3],array2[4],array2[5],array2[6],array2[7]}=message2;

always@(posedge clk ,posedge reset)
if(reset)
	q<=0;
	
always@(button)
		if(button)
			
			case(q)
				4'b0000:
					begin
						hex0 <= array1[0];
						hex1 <= array1[1];
						hex2 <= array1[2];
						hex3 <= array1[3];
						q <= q_next;
					end
				4'b0001:
					begin
						hex0 <= array1[1];
						hex1 <= array1[2];
						hex2 <= array1[3];
						hex3 <= array1[4];
						q <= q_next;
					end
				4'b0010:
					begin
						hex0 <= array1[2];
						hex1 <= array1[3];
						hex2 <= array1[4];
						hex3 <= array1[5];
						q <= q_next;
					end
				4'b0011:
					begin
						hex0 <= array1[3];
						hex1 <= array1[4];
						hex2 <= array1[5];
						hex3 <= array1[6];
						q <= q_next;
					end
				4'b0100:
					begin
						hex0 <= array1[4];
						hex1 <= array1[5];
						hex2 <= array1[6];
						hex3 <= array1[7];
						q <= q_next;
					end
				4'b0101:
					begin
						hex0 <= array1[5];
						hex1 <= array1[6];
						hex2 <= array1[7];
						hex3 <= array2[0];
						q <= q_next;
					end
				4'b0110:
					begin
						hex0 <= array1[6];
						hex1 <= array1[7];
						hex2 <= array2[0];
						hex3 <= array2[1];
						q <= q_next;
					end
				4'b0111:
					begin
						hex0 <= array1[7];
						hex1 <= array2[0];
						hex2 <= array2[1];
						hex3 <= array2[2];
						q <= q_next;
					end
				4'b1000:
					begin
						hex0 <= array2[0];
						hex1 <= array2[1];
						hex2 <= array2[2];
						hex3 <= array2[3];
						q <= q_next;
					end
				4'b1001:
					begin
						hex0 <= array2[1];
						hex1 <= array2[2];
						hex2 <= array2[3];
						hex3 <= array2[4];
						q <= q_next;
					end
				4'b1010:
					begin
						hex0 <= array2[2];
						hex1 <= array2[3];
						hex2 <= array2[4];
						hex3 <= array2[5];
						q <= q_next;
					end
				4'b1011:
					begin
						hex0 <= array2[3];
						hex1 <= array2[4];
						hex2 <= array2[5];
						hex3 <= array2[6];
						q <= q_next;
					end
				4'b1100:
					begin
						hex0 <= array2[4];
						hex1 <= array2[5];
						hex2 <= array2[6];
						hex3 <= array2[7];
						q <= q_next;
					end
				4'b1101:
					begin
						hex0 <= array2[5];
						hex1 <= array2[6];
						hex2 <= array2[7];
						hex3 <= array1[0];
						q <= q_next;
					end
				4'b1110:
					begin
						hex0 <= array2[6];
						hex1 <= array2[7];
						hex2 <= array2[0];
						hex3 <= array1[1];
						q <= q_next;
					end
				4'b1111:
					begin
						hex0 <= array2[7];
						hex1 <= array1[0];
						hex2 <= array1[1];
						hex3 <= array1[2];
						q <= q_next;
					end			
		endcase
assign q_next=q+1;		
FourDigitLEDdriver FourDigitLEDdriverINSTANCE(reset, clk, hex3, hex2, hex1, hex0, an3, an2, an1, an0, led_seg, dp);
endmodule