fix some errors

This commit is contained in:
SikongJueluo
2024-05-16 17:33:39 +08:00
parent 74425d1c28
commit 5eebe6e922
4 changed files with 8 additions and 6 deletions

View File

@@ -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