From: Jan Michel Date: Thu, 19 Nov 2020 09:31:12 +0000 (+0100) Subject: Fix error register X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=ae053c3738a01abe7e2db44fa272fe4dd7b93c9d;p=trbnet.git Fix error register --- diff --git a/trb_net16_api_ipu_streaming_accel.vhd b/trb_net16_api_ipu_streaming_accel.vhd index 9d2fd1b..e6a70e2 100644 --- a/trb_net16_api_ipu_streaming_accel.vhd +++ b/trb_net16_api_ipu_streaming_accel.vhd @@ -399,7 +399,8 @@ THE_IPU_FSM : process begin if fifo_trg_empty = '0' then fifo_trg_read <= '1'; ipu_fsm_state <= SEND_REQUEST_OWN; - end if; + fsm_error <= x"00"; + end if; if buf_CTS_START_READOUT_OUT = '1' then apl_fee_send_in <= '1'; apl_fee_error_pattern_in(15 downto 0) <= buf_CTS_NUMBER_OUT; @@ -407,6 +408,7 @@ THE_IPU_FSM : process begin apl_fee_error_pattern_in(31 downto 24) <= buf_CTS_INFORMATION_OUT; apl_fee_dtype_in <= buf_CTS_READOUT_TYPE_OUT; ipu_fsm_state <= DATA_TRANSFER; + fsm_error <= x"00"; end if; @@ -432,7 +434,6 @@ THE_IPU_FSM : process begin when CHECK_CTS_INFO => fsm_ipu_status_bits <= x"c"; ipu_fsm_state <= DATA_TRANSFER; - fsm_error <= x"00"; if fifo_trg_number /= buf_CTS_NUMBER_OUT then fsm_error(0) <= '1'; end if;