From 1c77580ace24f7d9ca362c3c8e210f2ffcd71e7f Mon Sep 17 00:00:00 2001 From: Tobias Weber Date: Wed, 14 Nov 2018 15:08:06 +0100 Subject: [PATCH] this should fix the multiple hit readout bug. --- mupix/Mupix8/sources/Datapath/ReadoutController.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => -- 2.43.0