From: Tobias Weber Date: Wed, 14 Nov 2018 14:08:06 +0000 (+0100) Subject: this should fix the multiple hit readout bug. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1c77580ace24f7d9ca362c3c8e210f2ffcd71e7f;p=trb3.git this should fix the multiple hit readout bug. --- diff --git a/mupix/Mupix8/sources/Datapath/ReadoutController.vhd b/mupix/Mupix8/sources/Datapath/ReadoutController.vhd index d623cd1..ee09676 100644 --- a/mupix/Mupix8/sources/Datapath/ReadoutController.vhd +++ b/mupix/Mupix8/sources/Datapath/ReadoutController.vhd @@ -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 =>