finish crop ip and update isp

This commit is contained in:
2024-05-13 10:49:15 +08:00
parent c221671804
commit d9d6f039d2
2 changed files with 42 additions and 0 deletions

View File

@@ -56,6 +56,18 @@ module crop #(
else begin
if (in_en) begin
if (OFFSET_Y <= cnt_y && cnt_y < (OFFSET_Y + OUT_HEIGHT)) begin
if (OFFSET_X <= cnt_x && cnt_x < (OFFSET_X + OUT_WIDTH)) begin
fifo_en <= 1;
end
else begin
fifo_en <= 0;
end
end
else begin
fifo_en <= 0;
end
cnt_x <= cnt_x + 1;
if (cnt_x >= (OFFSET_X + OUT_WIDTH)) begin
cnt_x <= 0;