if APL_SHORT_TRANSFER_IN = '1' and APL_WRITE_IN = '0' and fifo_to_int_empty = '1' then
next_state <= SEND_SHORT; -- no next data word, waiting for falling edge of APL_SEND_IN
next_INT_MASTER_DATAREADY_OUT <= '0';
+ update_registered_trailer <= '1'; -- moved from SEND_SHORT
else -- normal transfer, prepare the header
next_state <= SEND_HEADER;
out_select <= HDR;
-------------------------------------------------------------------------------
elsif current_state = SEND_SHORT then
next_state <= SEND_SHORT;
- update_registered_trailer <= '1';
if APL_SEND_IN = '0' then -- terminate the transfer
next_state <= SEND_TRAILER;
next_INT_MASTER_DATAREADY_OUT <= '1';