data/full_repos/permissive/425063349/StringChecker.v
1: b"%Error: data/full_repos/permissive/425063349/StringChecker.v:19: Cannot find file containing module: 'DFF'\n DFF D_1(Q1, Q1_n, D1, Reset, Clock);\n ^~~\n        ... Looked in:\n             data/full_repos/permissive/425063349,data/full_repos/permissive/425063349/DFF\n             data/full_repos/permissive/425063349,data/full_repos/permissive/425063349/DFF.v\n             data/full_repos/permissive/425063349,data/full_repos/permissive/425063349/DFF.sv\n             DFF\n             DFF.v\n             DFF.sv\n             obj_dir/DFF\n             obj_dir/DFF.v\n             obj_dir/DFF.sv\n%Error: data/full_repos/permissive/425063349/StringChecker.v:20: Cannot find file containing module: 'DFF'\n DFF D_2(Q2, Q2_n, D2, Reset, Clock);\n ^~~\n%Error: data/full_repos/permissive/425063349/StringChecker.v:27: Cannot find file containing module: 'WordDetector'\n WordDetector WD(EndCheck, WordFound, currentChar, Clock, startDetection);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/425063349/StringChecker.v:28: Cannot find file containing module: 'Hash'\n Hash H(HashCode, HashDone, WordFound, startHash, Clock); \n ^~~~\n%Error: data/full_repos/permissive/425063349/StringChecker.v:29: Cannot find file containing module: 'Transmitter'\n Transmitter T(hashData, Sent, HashCode, startTransmitting, Clock);\n ^~~~~~~~~~~\n%Error: Exiting due to 5 error(s)\n"
module StringChecker(output [7:0] hashData, output z1, z2, input [7:0] currentChar, input Reset, Clock);
	wire EndCheck, HashDone, Sent;
	wire [2:0] WordFound;
	wire [63:0] HashCode;

	wire Q1, Q2, Q1_n, Q2_n;
	wire D1, D2;
	assign D1 = (EndCheck & Q2) | (~Sent & Q1);
	assign z1 = Q1;
	assign D2 = Q1_n | (~HashDone & Q2);
	assign z2 = Q1 & Q2_n;
	DFF D_1(Q1, Q1_n, D1, Reset, Clock);
	DFF D_2(Q2, Q2_n, D2, Reset, Clock);
	
	wire startDetection, startHash, startTransmitting;
	assign startDetection = Q1 | Reset; 
	assign startHash = ~(Q1 & Q2) | Reset; 
	assign startTransmitting = ~(Q1 & Q2_n) | Reset;
	
	WordDetector WD(EndCheck, WordFound, currentChar, Clock, startDetection);
	Hash H(HashCode, HashDone, WordFound, startHash, Clock); 
	Transmitter T(hashData, Sent, HashCode, startTransmitting, Clock);
endmodule
module StringChecker(output [7:0] hashData, output z1, z2, input [7:0] currentChar, input Reset, Clock);

	wire EndCheck, HashDone, Sent;
	wire [2:0] WordFound;
	wire [63:0] HashCode;

	wire Q1, Q2, Q1_n, Q2_n;
	wire D1, D2;
	assign D1 = (EndCheck & Q2) | (~Sent & Q1);
	assign z1 = Q1;
	assign D2 = Q1_n | (~HashDone & Q2);
	assign z2 = Q1 & Q2_n;
	DFF D_1(Q1, Q1_n, D1, Reset, Clock);
	DFF D_2(Q2, Q2_n, D2, Reset, Clock);
	
	wire startDetection, startHash, startTransmitting;
	assign startDetection = Q1 | Reset; 
	assign startHash = ~(Q1 & Q2) | Reset; 
	assign startTransmitting = ~(Q1 & Q2_n) | Reset;
	
	WordDetector WD(EndCheck, WordFound, currentChar, Clock, startDetection);
	Hash H(HashCode, HashDone, WordFound, startHash, Clock); 
	Transmitter T(hashData, Sent, HashCode, startTransmitting, Clock);
endmodule