`timescale 1ns / 1ps

`timescale 1ns / 1ps
//

module yuvtorgb_1pix    //4clk
(
    input                 clk                    ,
    input                rstn                ,
    
    input   [71:0]      yuv              ,
    
    output  [35:0]     rgb     
    
);

wire [23:0] v = yuv[23:0]        ;
wire [23:0] u = yuv[23+24*1:0+24*1];
wire [23:0] y = yuv[23+24*2:0+24*2];


endmodule
    

`timescale 1ns / 1ps
//

module rgbtoyuv_8pix    //4clk
(
    input                 clk                    ,
    input                rstn                ,  
    input                de_in                ,    
    input   [575:0]     yuv_in              ,
    
    output                de_o                ,
    output  [287:0]     rgb_out     
    
);

reg [3:0] shift_reg;
always 

你可能感兴趣的:(fpga开发)