fix offset bug

This commit is contained in:
SikongJueluo
2024-05-18 21:10:17 +08:00
parent caa0588b9b
commit f9bd17b3de
4 changed files with 23 additions and 20 deletions

View File

@@ -66,9 +66,9 @@ module crop #(
end
end
if (cnt_x >= IN_WIDTH - 1) begin
if (cnt_x >= IN_WIDTH - 3) begin
cnt_x <= 0;
if (cnt_y >= IN_HEIGHT - 1) begin
if (cnt_y >= IN_HEIGHT - 3) begin
cnt_y <= 0;
end
else begin