diff --git a/hardware/signal_processing/add.vhd b/hardware/signal_processing/add.vhd index 4c69835..37c90bc 100644 --- a/hardware/signal_processing/add.vhd +++ b/hardware/signal_processing/add.vhd @@ -124,8 +124,15 @@ begin end if; -- # when ADD_WRITE => -- # - index <= index + 1; -- # - current_add_state <= ADD_IDLE; -- # + if ( index < work.task.STREAM_LEN - 1 ) then -- # + index <= index + 1; -- # + current_add_state <= ADD_IDLE; -- # + else -- # + current_add_state <= ADD_DONE_WAIT; -- # + end if; -- # + + when ADD_DONE_WAIT => -- # + index <= index + 1; -- # when others => -- # current_add_state <= ADD_IDLE; -- #