update software sim

This commit is contained in:
SikongJueluo
2024-05-18 18:56:32 +08:00
parent 1ad504cb9f
commit caa0588b9b
12 changed files with 271 additions and 45 deletions

View File

@@ -152,13 +152,14 @@ module demosaic2 #(
pos_y <= pos_y + 1;
if (pos_y >= IM_HEIGHT - 2 - 1) begin
pos_y <= 0;
case (RAW_TYPE)
0: raw_type <= 2;
1: raw_type <= 3;
2: raw_type <= 0;
3: raw_type <= 1;
endcase
end
// 换行后切换Bayer格式
case (RAW_TYPE)
0: raw_type <= 2;
1: raw_type <= 3;
2: raw_type <= 0;
3: raw_type <= 1;
endcase
end
else begin
cnt_data <= 2;