fix some warning

This commit is contained in:
SikongJueluo
2024-05-10 21:41:47 +08:00
parent 7c9d5d7696
commit 9fc9627fc8
5 changed files with 262 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ module demosaic2 #(
);
// 常量包括状态机
localparam IM_SIZE = IM_HEIGHT * IM_WIDTH;
// localparam IM_SIZE = IM_HEIGHT * IM_WIDTH;
localparam READ_DATA = 0;
localparam COLOR_GEN = 1;
localparam WRITE_DATA = 2;
@@ -141,19 +141,19 @@ module demosaic2 #(
cnt_data <= 0;
pos_x <= 0;
pos_y <= pos_y + 1;
// if (pos_y >= IM_HEIGHT - 2)
// pos_y <= 0;
if (pos_y >= IM_HEIGHT - 2)
pos_y <= 0;
end
else begin
cnt_data <= 2;
// 窗口右移
data_cache[0][0] = data_cache[0][1];
data_cache[1][0] = data_cache[1][1];
data_cache[2][0] = data_cache[2][1];
data_cache[0][1] = data_cache[0][2];
data_cache[1][1] = data_cache[1][2];
data_cache[2][1] = data_cache[2][2];
data_cache[0][0] <= data_cache[0][1];
data_cache[1][0] <= data_cache[1][1];
data_cache[2][0] <= data_cache[2][1];
data_cache[0][1] <= data_cache[0][2];
data_cache[1][1] <= data_cache[1][2];
data_cache[2][1] <= data_cache[2][2];
end
end
endcase