data/full_repos/permissive/527007664/openlane/pixel/src/Pixel.v
1: b'%Warning-PINMISSING: data/full_repos/permissive/527007664/openlane/pixel/src/Pixel.v:287: Cell has missing pin: \'reset\'\n loc_timer_int inst2(\n               ^~~~~\n                     ... Use "/* verilator lint_off PINMISSING */" and lint_on around source to disable this message.\n%Warning-PINMISSING: data/full_repos/permissive/527007664/openlane/pixel/src/Pixel.v:294: Cell has missing pin: \'reset\'\n adj_timer_int inst3(\n               ^~~~~\n%Error: Exiting due to 2 warning(s)\n'
module pixel_counter (clk, reset, pxl_done_i, pxl_q, kernel_done_o);
	input clk, reset, pxl_done_i;
	output kernel_done_o;
	output [3:0] pxl_q;
	reg [3:0] pxl_tmp;
	reg kernel_done_o = 0;
	wire pixel_count_max;

	always @(posedge clk or posedge reset)
	begin
		if (reset)
			pxl_tmp <= 4'b0001;
		else if (kernel_done_o)
			pxl_tmp <= 4'b0000;
		else if (pxl_done_i)
			pxl_tmp <= pxl_tmp + 1'b1;
	end

	assign pxl_q = pxl_tmp;
	assign pixel_count_max = (pxl_q == 4'b1010);
	
	always @(posedge clk) 
	begin
    		kernel_done_o <= pixel_count_max;
	end   	

	
endmodule
module pixel_counter (clk, reset, pxl_done_i, pxl_q, kernel_done_o);

	input clk, reset, pxl_done_i;
	output kernel_done_o;
	output [3:0] pxl_q;
	reg [3:0] pxl_tmp;
	reg kernel_done_o = 0;
	wire pixel_count_max;

	always @(posedge clk or posedge reset)
	begin
		if (reset)
			pxl_tmp <= 4'b0001;
		else if (kernel_done_o)
			pxl_tmp <= 4'b0000;
		else if (pxl_done_i)
			pxl_tmp <= pxl_tmp + 1'b1;
	end

	assign pxl_q = pxl_tmp;
	assign pixel_count_max = (pxl_q == 4'b1010);
	
	always @(posedge clk) 
	begin
    		kernel_done_o <= pixel_count_max;
	end   	

	
endmodule