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

@@ -59,9 +59,9 @@ module Demosaic2 #(
end
// 请求数据
assign out_ready = (cnt_data <= 2 && !in_en && state == READ_DATA) ? 1 : 0;
assign out_ready = (cnt_data <= 2 && !in_en && state == READ_DATA && !reset) ? 1 : 0;
// 收到数据
assign out_receive = (in_en && state == READ_DATA) ? 1 : 0;
assign out_receive = (in_en && state == READ_DATA && !reset) ? 1 : 0;
// 各状态执行的操作
always @(posedge clk) begin