]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
this should fix the multiple hit readout bug.
authorTobias Weber <toweber86@gmail.com>
Wed, 14 Nov 2018 14:08:06 +0000 (15:08 +0100)
committerTobias Weber <toweber86@gmail.com>
Wed, 14 Nov 2018 14:08:06 +0000 (15:08 +0100)
mupix/Mupix8/sources/Datapath/ReadoutController.vhd

index d623cd1ef0f3c0cd2914a16f89604be6b8b78099..ee096768ff994a581bec55323dd2161e9c99d158 100644 (file)
@@ -163,7 +163,7 @@ begin
             else
               rd_en <= '0';
             end if;
-            if almost_empty_edge = "01" or wordcounter = unsigned(max_words) - 1 then
+            if empty = '1' or almost_empty_edge = "01" or wordcounter = unsigned(max_words) - 1 then
               readout_fsm <= trailer;
             end if;
           when wait_trigger =>