reconstruct saturation and make it sync to clk

This commit is contained in:
SikongJueluo
2024-07-06 21:53:06 +08:00
parent 242f3527f8
commit d9ab23defe
8 changed files with 94 additions and 47 deletions

View File

@@ -45,8 +45,8 @@ module Crop #(
endcase
end
assign out_ready = (!in_en && state == READ_DATA) ? 1 : 0;
assign out_receive = (in_en && state == READ_DATA) ? 1 : 0;
assign out_ready = (!in_en && state == READ_DATA && !reset) ? 1 : 0;
assign out_receive = (in_en && state == READ_DATA && !reset) ? 1 : 0;
assign is_valid = ((OFFSET_Y <= cnt_y && cnt_y <= (OFFSET_Y + OUT_HEIGHT - 1)) &&
(OFFSET_X <= cnt_x && cnt_x <= (OFFSET_X + OUT_WIDTH))) ? 1 : 0;