From 74890150efde89f4a7db8efbd7e2b82c672b8496 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 27 Aug 2024 12:39:19 +0200 Subject: [PATCH] do calibration only on D and A type triggers --- code/ReadoutHandler.vhd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/ReadoutHandler.vhd b/code/ReadoutHandler.vhd index deb51db..08a7048 100644 --- a/code/ReadoutHandler.vhd +++ b/code/ReadoutHandler.vhd @@ -92,8 +92,12 @@ PROC_RDO_SYSTEM : process begin is_calib_sys <= '0'; timer <= TRIGGER_WINDOW; elsif READOUT_RX.valid_notiming_trg = '1' then - state_rdo <= CALIB; - is_calib_sys <= '1'; + if READOUT_RX.trg_type = x"d" or READOUT_RX.trg_type = x"a" then + state_rdo <= CALIB; + is_calib_sys <= '1'; + else + state_rdo <= FINISH; + end if; elsif READOUT_RX.invalid_trg = '1' then state_rdo <= FINISH; end if; -- 2.43.0