data/full_repos/permissive/114642806/dev/milestone2/counter.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/114642806/dev/milestone2/counter.v:9: 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 \'counter10s\'\nmodule counter10s(CLOCK_50, enable);\n       ^~~~~~~~~~\n                                                                                  : ... Top module \'counter5s\'\nmodule counter5s(CLOCK_50, enable);\n       ^~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module counter10pos (enable, enable_next);
input enable;
output enable_next;

reg [3:0] count = 4'b0;

assign enable_next = count[3] & ~count[2] & count[1] & ~count[0];

always @(posedge enable)
	begin
		if (enable_next == 1'b1) begin
			count<=0;
		end
		else begin
			count <= count + 1'b1;
		end
	end
endmodule
module counter10pos (enable, enable_next);

input enable;
output enable_next;

reg [3:0] count = 4'b0;

assign enable_next = count[3] & ~count[2] & count[1] & ~count[0];

always @(posedge enable)
	begin
		if (enable_next == 1'b1) begin
			count<=0;
		end
		else begin
			count <= count + 1'b1;
		end
	end
endmodule