]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
Fix error register
authorJan Michel <j.michel@gsi.de>
Thu, 19 Nov 2020 09:31:12 +0000 (10:31 +0100)
committerJan Michel <j.michel@gsi.de>
Thu, 19 Nov 2020 16:33:46 +0000 (17:33 +0100)
trb_net16_api_ipu_streaming_accel.vhd

index 9d2fd1b023132f1390c2a293e8476d2821fad9d3..e6a70e2f7ec4f7e094eb13318540a03fc687ff91 100644 (file)
@@ -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;