module RGB_CONN(R_IN,G_IN,B_IN,CLK,CLK_OUT,RGB_OUT); input [7:0]R_IN; input [7:0]G_IN; input [7:0]B_IN; output [7:0]RGB_OUT; input CLK; output CLK_OUT; reg [7:0]RGB_OUT; reg CLK_OUT; //reg DATA_BUF; //integer I; parameter STEP=20; always @ (posedge CLK) begin RGB_OUT=R_IN; CLK_OUT=1; #(STEP) CLK_OUT=0; RGB_OUT=G_IN; CLK_OUT=1; #(STEP) CLK_OUT=0; RGB_OUT=B_IN; CLK_OUT=1; #(STEP) CLK_OUT=0; end endmodule 编译通不过呀 |