data/full_repos/permissive/161931498/project/DMA_video/Miz_sys.srcs/sources_1/bd/system/ipshared/5dd2/IPSRC/OV_Sensor_ML.v
'utf-8' codec can't decode byte 0xca in position 1016: invalid continuation byte
1: b"%Error: data/full_repos/permissive/161931498/project/DMA_video/Miz_sys.srcs/sources_1/bd/system/ipshared/5dd2/IPSRC/OV_Sensor_ML.v:71: syntax error, unexpected '(', expecting IDENTIFIER\n        .clk_i(CLK_i),\n        ^\n%Error: Exiting due to 1 error(s)\n"
module OV_Sensor_ML(
    input CLK_i,

	input		cmos_vsync_i,
	input		cmos_href_i,
	input		cmos_pclk_i,
	output		cmos_xclk_o,
	input[7:0]	cmos_data_i,
	output hs_o,
    output vs_o,

    output [23:0] rgb_o,
    output vid_clk_ce
);

wire  [15:0]rgb_o_r;

assign rgb_o = {rgb_o_r[15:11],3'd0 ,rgb_o_r[10:5] ,2'd0,rgb_o_r[4:0],3'd0};
reg [7:0]cmos_data_r;
reg cmos_href_r;
reg cmos_vsync_r;

always@(posedge cmos_pclk_i)
begin
   cmos_data_r <= cmos_data_i;
   cmos_href_r <= cmos_href_i;
   cmos_vsync_r<= cmos_vsync_i;
end 

cmos_decode cmos_decode_u0(

	.cmos_clk_i(CLK_i),
	.rst_n_i(RESETn_i2c),

	.cmos_pclk_i(cmos_pclk_i),
	.cmos_href_i(cmos_href_r),
	.cmos_vsync_i(cmos_vsync_r),
	.cmos_data_i(cmos_data_r),
	.cmos_xclk_o(cmos_xclk_o),

	.hs_o(hs_o),
	.vs_o(vs_o),

	.rgb565_o(rgb_o_r),
	.vid_clk_ce(vid_clk_ce)
    );
    
count_reset_v1#(
        .num(20'hffff0)
    )(
        .clk_i(CLK_i),
        .rst_o(RESETn_i2c)
    );    
		
endmodule
module OV_Sensor_ML(
    input CLK_i,

	input		cmos_vsync_i,
	input		cmos_href_i,
	input		cmos_pclk_i,
	output		cmos_xclk_o,
	input[7:0]	cmos_data_i,
	output hs_o,
    output vs_o,

    output [23:0] rgb_o,
    output vid_clk_ce
);


wire  [15:0]rgb_o_r;

assign rgb_o = {rgb_o_r[15:11],3'd0 ,rgb_o_r[10:5] ,2'd0,rgb_o_r[4:0],3'd0};
reg [7:0]cmos_data_r;
reg cmos_href_r;
reg cmos_vsync_r;

always@(posedge cmos_pclk_i)
begin
   cmos_data_r <= cmos_data_i;
   cmos_href_r <= cmos_href_i;
   cmos_vsync_r<= cmos_vsync_i;
end 

cmos_decode cmos_decode_u0(

	.cmos_clk_i(CLK_i),
	.rst_n_i(RESETn_i2c),

	.cmos_pclk_i(cmos_pclk_i),
	.cmos_href_i(cmos_href_r),
	.cmos_vsync_i(cmos_vsync_r),
	.cmos_data_i(cmos_data_r),
	.cmos_xclk_o(cmos_xclk_o),

	.hs_o(hs_o),
	.vs_o(vs_o),

	.rgb565_o(rgb_o_r),
	.vid_clk_ce(vid_clk_ce)
    );
    
count_reset_v1#(
        .num(20'hffff0)
    )(
        .clk_i(CLK_i),
        .rst_o(RESETn_i2c)
    );    
		
endmodule