data/full_repos/permissive/20401628/balldetector.v
1: b'%Warning-IMPLICIT: data/full_repos/permissive/20401628/balldetector.v:207: Signal definition not found, creating implicitly: \'wreq\'\n wreq,\n ^~~~\n                   ... Use "/* verilator lint_off IMPLICIT */" and lint_on around source to disable this message.\n%Warning-IMPLICIT: data/full_repos/permissive/20401628/balldetector.v:208: Signal definition not found, creating implicitly: \'dreq\'\n                                                                         : ... Suggested alternative: \'wreq\'\n dreq\n ^~~~\n%Error: data/full_repos/permissive/20401628/balldetector.v:113: Cannot find file containing module: \'vline_capture\'\nvline_capture ld0 (\n^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20401628,data/full_repos/permissive/20401628/vline_capture\n             data/full_repos/permissive/20401628,data/full_repos/permissive/20401628/vline_capture.v\n             data/full_repos/permissive/20401628,data/full_repos/permissive/20401628/vline_capture.sv\n             vline_capture\n             vline_capture.v\n             vline_capture.sv\n             obj_dir/vline_capture\n             obj_dir/vline_capture.v\n             obj_dir/vline_capture.sv\n%Error: data/full_repos/permissive/20401628/balldetector.v:120: Cannot find file containing module: \'pixcopy\'\npixcopy pc0 (\n^~~~~~~\n%Error: data/full_repos/permissive/20401628/balldetector.v:130: Cannot find file containing module: \'rgb2hsv\'\nrgb2hsv rh0(\n^~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/balldetector.v:157: Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS\'s CONST \'?32?sh80\' generates 32 or 8 bits.\n                                                                      : ... In instance balldetector\n   2\'b00: turlet = 128;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/balldetector.v:158: Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS\'s CONST \'?32?shc0\' generates 32 or 8 bits.\n                                                                      : ... In instance balldetector\n   2\'b01: turlet = 192; \n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/balldetector.v:159: Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS\'s CONST \'?32?sh40\' generates 32 or 7 bits.\n                                                                      : ... In instance balldetector\n   2\'b10: turlet = 64;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/balldetector.v:160: Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS\'s CONST \'?32?sh80\' generates 32 or 8 bits.\n                                                                      : ... In instance balldetector\n   2\'b11: turlet = 128;\n                 ^\n%Error: data/full_repos/permissive/20401628/balldetector.v:166: Cannot find file containing module: \'servo_timer\'\nservo_timer st0 ( \n^~~~~~~~~~~\n%Error: data/full_repos/permissive/20401628/balldetector.v:186: Cannot find file containing module: \'spi_module\'\nspi_module sm0 ( .clk (clk),\n^~~~~~~~~~\n%Error: data/full_repos/permissive/20401628/balldetector.v:196: Cannot find file containing module: \'pll\'\npll pll_inst (\n^~~\n%Error: data/full_repos/permissive/20401628/balldetector.v:211: Cannot find file containing module: \'i2c_control\'\ni2c_control ic0 (\n^~~~~~~~~~~\n%Error: Exiting due to 7 error(s), 6 warning(s)\n'
module i2c_test (
	input res,
	input ioclk,
	output reg wreq,
	output reg dreq);

reg [29:0] counter;

always @(ioclk) begin
	if (res) begin
		wreq <= 0;
		dreq <= 0;
		counter <= 0;
	end
	counter <= counter + 1'b1;

	if (counter == 30'h100_0000) begin
		dreq <= 1;
	end

end

endmodule
module i2c_test (
	input res,
	input ioclk,
	output reg wreq,
	output reg dreq);


reg [29:0] counter;

always @(ioclk) begin
	if (res) begin
		wreq <= 0;
		dreq <= 0;
		counter <= 0;
	end
	counter <= counter + 1'b1;

	if (counter == 30'h100_0000) begin
		dreq <= 1;
	end

end

endmodule