vjabagch
Member level 1
I am using a Chrontel 7301C transmitter and my code is posted below. I can not seem to determine which part of my 12 bit pixel value to fill with binary 1's or binary 0's to produce the proper color. I want to produce a bright hue so I was thinking of using 1's as the color padding to bring up the brightness.
Code:
always @(posedge XCLK_N)
begin
if (!DVI_RESET_B)
begin
pixel_select <= 1'b0;
DATA[11:0] <= 12'h000;
end
else
begin
if (~DATA_ENABLE)
begin
pixel_select <= 1'b0;
DATA[11:0] <= 12'h000;
end
else
begin
if (pixel_select == 0)
begin
DATA[11:0] <= {GREEN[4:2], BLUE[7:3]};
//DATA[11:0] <= {GREEN[3:0], BLUE[7:0]};
pixel_select <= 1'b1;
end
else
begin
DATA[11:0] <= {RED[7:3], GREEN[7:5]};
//DATA[11:0] <= {RED[7:0], GREEN[7:4]};
pixel_select <= 1'b0;
end
end
end
end