--------------------------------------project------------------------------------------------------- 此模块为 yuv444 转 yuv422 模块,由输入 24bit 数转 8bit 输出,本笔记都以此工程为基础,都仿真测试过 module yuv444to422( input ccd_clk, input sys_clk, input resetn, input HD, input VD, input [23:0] yuv, input yuv_trans_done, output clk_out, output reg [7:0] data_out, output HD_out, output VD_out, output reg [11:0] v_cnt ); assign clk_out = ~ccd_clk; assign HD_out = HD;// ;hd1[1] assign VD_out = VD;//v_cnt_out;//;vd1[1] ///////////////////1280*1024-->1280*720//////////// reg [1:0] hs_edge; always@(posedge ccd_clk) begin if(
resetn) hs_edge