fix some warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user