From: Jan Michel Date: Tue, 27 Aug 2024 10:39:19 +0000 (+0200) Subject: do calibration only on D and A type triggers X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=74890150efde89f4a7db8efbd7e2b82c672b8496;p=clocked_tdc.git do calibration only on D and A type triggers --- 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;