]> jspc29.x-matter.uni-frankfurt.de Git - clocked_tdc.git/commitdiff
do calibration only on D and A type triggers
authorJan Michel <michel@physik.uni-frankfurt.de>
Tue, 27 Aug 2024 10:39:19 +0000 (12:39 +0200)
committerJan Michel <michel@physik.uni-frankfurt.de>
Tue, 27 Aug 2024 10:39:19 +0000 (12:39 +0200)
code/ReadoutHandler.vhd

index deb51db08f007078abdef328119978e78070ec1e..08a7048958305d4d603687e5d0f80a26953eb4fa 100644 (file)
@@ -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;