data/full_repos/permissive/141582589/src/common_rtl/video/vin_rgb_pro.v
1: b"%Error: data/full_repos/permissive/141582589/src/common_rtl/video/vin_rgb_pro.v:24: Cannot find file containing module: 'rgb_to_ycbcr'\nrgb_to_ycbcr rgb_to_ycbcr_m0(\n^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/141582589/src/common_rtl/video,data/full_repos/permissive/141582589/rgb_to_ycbcr\n             data/full_repos/permissive/141582589/src/common_rtl/video,data/full_repos/permissive/141582589/rgb_to_ycbcr.v\n             data/full_repos/permissive/141582589/src/common_rtl/video,data/full_repos/permissive/141582589/rgb_to_ycbcr.sv\n             rgb_to_ycbcr\n             rgb_to_ycbcr.v\n             rgb_to_ycbcr.sv\n             obj_dir/rgb_to_ycbcr\n             obj_dir/rgb_to_ycbcr.v\n             obj_dir/rgb_to_ycbcr.sv\n%Error: data/full_repos/permissive/141582589/src/common_rtl/video/vin_rgb_pro.v:43: Cannot find file containing module: 'yuv444_yuv422'\nyuv444_yuv422 yuv444_yuv422_m0(\n^~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module vin_rgb_pro(
	input rgb_pixel_clk,
	input rgb_hs,
	input rgb_vs,
	input rgb_de,
	input[7:0] rgb_r,
	input[7:0] rgb_g,
	input[7:0] rgb_b,
	
	output yc_de,
	output yc_hs,
	output yc_vs,
	output[7:0] yc_y,
	output[7:0] yc_c
);
wire ycbcr_hs;
wire ycbcr_vs;
wire ycbcr_de;
wire[7:0] ycbcr_y;
wire[7:0] ycbcr_cb;
wire[7:0] ycbcr_cr;
assign yc_hs = ycbcr_hs;
assign yc_vs = ycbcr_vs;
rgb_to_ycbcr rgb_to_ycbcr_m0(
	.clk(rgb_pixel_clk),
	.i_r_8b(rgb_r),
	.i_g_8b(rgb_g),
	.i_b_8b(rgb_b),
 					
	.i_h_sync(rgb_hs),
	.i_v_sync(rgb_vs),
	.i_data_en(rgb_de),
						
	.o_y_8b(ycbcr_y),
	.o_cb_8b(ycbcr_cb),
	.o_cr_8b(ycbcr_cr),
						
	.o_h_sync(ycbcr_hs),
	.o_v_sync(ycbcr_vs), 
	.o_data_en(ycbcr_de)
);

yuv444_yuv422 yuv444_yuv422_m0(
	.sys_clk(rgb_pixel_clk),
	.i_hs(ycbcr_hs),

	.i_de(ycbcr_de),
	.i_y(ycbcr_y),
	.i_cb(ycbcr_cb),
	.i_cr(ycbcr_cr),


	.o_de(yc_de),
	.o_y(yc_y),
	.o_c(yc_c)
);
endmodule
module vin_rgb_pro(
	input rgb_pixel_clk,
	input rgb_hs,
	input rgb_vs,
	input rgb_de,
	input[7:0] rgb_r,
	input[7:0] rgb_g,
	input[7:0] rgb_b,
	
	output yc_de,
	output yc_hs,
	output yc_vs,
	output[7:0] yc_y,
	output[7:0] yc_c
);

wire ycbcr_hs;
wire ycbcr_vs;
wire ycbcr_de;
wire[7:0] ycbcr_y;
wire[7:0] ycbcr_cb;
wire[7:0] ycbcr_cr;
assign yc_hs = ycbcr_hs;
assign yc_vs = ycbcr_vs;
rgb_to_ycbcr rgb_to_ycbcr_m0(
	.clk(rgb_pixel_clk),
	.i_r_8b(rgb_r),
	.i_g_8b(rgb_g),
	.i_b_8b(rgb_b),
 					
	.i_h_sync(rgb_hs),
	.i_v_sync(rgb_vs),
	.i_data_en(rgb_de),
						
	.o_y_8b(ycbcr_y),
	.o_cb_8b(ycbcr_cb),
	.o_cr_8b(ycbcr_cr),
						
	.o_h_sync(ycbcr_hs),
	.o_v_sync(ycbcr_vs), 
	.o_data_en(ycbcr_de)
);

yuv444_yuv422 yuv444_yuv422_m0(
	.sys_clk(rgb_pixel_clk),
	.i_hs(ycbcr_hs),

	.i_de(ycbcr_de),
	.i_y(ycbcr_y),
	.i_cb(ycbcr_cb),
	.i_cr(ycbcr_cr),


	.o_de(yc_de),
	.o_y(yc_y),
	.o_c(yc_c)
);
endmodule