fix some errors
This commit is contained in:
@@ -54,7 +54,7 @@ module chanels_to_RGB #(
|
||||
case (state)
|
||||
READ_DATA: begin
|
||||
fifo_en <= 0;
|
||||
|
||||
|
||||
if (in_en) begin
|
||||
data_cal[0] <= data_in[0] * OUT_DEPTH / IN_DEPTH;
|
||||
data_cal[1] <= data_in[1] * OUT_DEPTH / IN_DEPTH;
|
||||
@@ -65,7 +65,7 @@ module chanels_to_RGB #(
|
||||
|
||||
SEND_DATA: begin
|
||||
fifo_en <= 1;
|
||||
fifo_in <= {data_cal[0][OUT_DEPTH - 1:0], data_cal[1][OUT_DEPTH - 1:0],data_cal[2][OUT_DEPTH - 1:0]};
|
||||
fifo_in <= {data_cal[0][OUT_DEPTH - 1:0], data_cal[1][OUT_DEPTH - 1:0], data_cal[2][OUT_DEPTH - 1:0]};
|
||||
end
|
||||
endcase
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user