data/full_repos/permissive/425063349/WordDetector.v
1: b"%Error: data/full_repos/permissive/425063349/WordDetector.v:17: Cannot find file containing module: 'word1'\n word1 w11 (CharA, i1);\n ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/425063349,data/full_repos/permissive/425063349/word1\n             data/full_repos/permissive/425063349,data/full_repos/permissive/425063349/word1.v\n             data/full_repos/permissive/425063349,data/full_repos/permissive/425063349/word1.sv\n             word1\n             word1.v\n             word1.sv\n             obj_dir/word1\n             obj_dir/word1.v\n             obj_dir/word1.sv\n%Error: data/full_repos/permissive/425063349/WordDetector.v:18: Cannot find file containing module: 'CompareChar'\n CompareChar c1 (up1, X, CharA);\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:19: Cannot find file containing module: 'Counter'\n Counter check1 (wfound1, i1, wlen1, up1, reset1, Clock);\n ^~~~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:21: Cannot find file containing module: 'word2'\n word2 w22 (CharB, i2);\n ^~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:22: Cannot find file containing module: 'CompareChar'\n CompareChar c2 (up2, X, CharB);\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:23: Cannot find file containing module: 'Counter'\n Counter check2 (wfound2, i2, wlen2, up2, reset2, Clock);\n ^~~~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:25: Cannot find file containing module: 'word3'\n word3 w33 (CharC, i3);\n ^~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:26: Cannot find file containing module: 'CompareChar'\n CompareChar c3 (up3, X, CharC);\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/425063349/WordDetector.v:27: Cannot find file containing module: 'Counter'\n Counter check3 (wfound3, i3, wlen3, up3, reset3, Clock);\n ^~~~~~~\n%Error: Exiting due to 9 error(s)\n"
module WordDetector(output EndC, output [2:0] Wfound, input [7:0] X, input Clock, Reset);
	wire [3:0] wlen1, wlen2, wlen3;
	assign wlen1 = 4'd6; 
	assign wlen2 = 4'd7;
	assign wlen3 = 4'd7;
	
	wire [3:0] i1, i2, i3;
	wire[7:0] CharA, CharB, CharC;
	
	wire wfound1, wfound2, wfound3;
	assign Wfound = {wfound1, wfound2, wfound3};
	assign EndC = (Wfound > 0);
		
	wire up1, up2, up3;
	reg reset1, reset2, reset3;

	word1 w11 (CharA, i1);
	CompareChar c1 (up1, X, CharA);
	Counter check1 (wfound1, i1, wlen1, up1, reset1, Clock);
	
	word2 w22 (CharB, i2);
	CompareChar c2 (up2, X, CharB);
	Counter check2 (wfound2, i2, wlen2, up2, reset2, Clock);
	
	word3 w33 (CharC, i3);
	CompareChar c3 (up3, X, CharC);
	Counter check3 (wfound3, i3, wlen3, up3, reset3, Clock);
	
	always @ (posedge Clock or posedge Reset) begin
		if (Reset) begin
			reset1 <= 1'b1;
			reset2 <= 1'b1;
			reset3 <= 1'b1;
		end
		else
			{reset1, reset2, reset3} <= {~up1, ~up2, ~up3};
	end
	
endmodule
module WordDetector(output EndC, output [2:0] Wfound, input [7:0] X, input Clock, Reset);

	wire [3:0] wlen1, wlen2, wlen3;
	assign wlen1 = 4'd6; 
	assign wlen2 = 4'd7;
	assign wlen3 = 4'd7;
	
	wire [3:0] i1, i2, i3;
	wire[7:0] CharA, CharB, CharC;
	
	wire wfound1, wfound2, wfound3;
	assign Wfound = {wfound1, wfound2, wfound3};
	assign EndC = (Wfound > 0);
		
	wire up1, up2, up3;
	reg reset1, reset2, reset3;

	word1 w11 (CharA, i1);
	CompareChar c1 (up1, X, CharA);
	Counter check1 (wfound1, i1, wlen1, up1, reset1, Clock);
	
	word2 w22 (CharB, i2);
	CompareChar c2 (up2, X, CharB);
	Counter check2 (wfound2, i2, wlen2, up2, reset2, Clock);
	
	word3 w33 (CharC, i3);
	CompareChar c3 (up3, X, CharC);
	Counter check3 (wfound3, i3, wlen3, up3, reset3, Clock);
	
	always @ (posedge Clock or posedge Reset) begin
		if (Reset) begin
			reset1 <= 1'b1;
			reset2 <= 1'b1;
			reset3 <= 1'b1;
		end
		else
			{reset1, reset2, reset3} <= {~up1, ~up2, ~up3};
	end
	
endmodule