]> jspc29.x-matter.uni-frankfurt.de Git - tdc.git/commitdiff
fixed missing trailer word if last channel has data
authorJan Michel <j.michel@gsi.de>
Mon, 2 Jul 2018 08:42:51 +0000 (10:42 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 2 Jul 2018 08:42:51 +0000 (10:42 +0200)
releases/tdc_v2.3/Readout_record.vhd

index 58d3e7792090eec73efcf08066a7e32da03343cc..005d88e59c02764255db7cca3d43dc2235d74049 100644 (file)
@@ -451,13 +451,13 @@ begin  -- behavioral
 
       when SEND_TRG_RELEASE_A =>
         RD_NEXT          <= SEND_TRG_RELEASE_B;
-        wr_trailer_fsm   <= '1';
         fifo_nr_rd_fsm   <= 0;
         readout_fsm      <= '1';
         rd_fsm_debug_fsm <= x"A";
 
       when SEND_TRG_RELEASE_B =>
         RD_NEXT          <= SEND_TRG_RELEASE_C;
+        wr_trailer_fsm   <= '1';
         readout_fsm      <= '1';
         rd_fsm_debug_fsm <= x"A";