next_toc_save <= '1';
next_toc_rst <= '1';
--next_trg_rst <= '1'; -- gk 21.09.10
- next_invalid_trg <= '1';
+ --next_invalid_trg <= '1';
----------------------------
else
-- wait for either timeout or LVL1
---------------------------------------------------------------------------
-- Error bits
---------------------------------------------------------------------------
-next_error_pattern(31 downto 19) <= LVL1_ERROR_PATTERN_IN(31 downto 19);
+next_error_pattern(31 downto 19) <= LVL1_ERROR_PATTERN_IN(31 downto 26);
+
+next_error_pattern(25) <= LVL1_ERROR_PATTERN_IN(25) or timeout_found; -- timeout
+next_error_pattern(24) <= LVL1_ERROR_PATTERN_IN(24) or short_tmg_trg; -- spike detected
+
+next_error_pattern(23 downto 19 <= LVL1_ERROR_PATTERN_IN(23 downto 19);
+
next_error_pattern(18) <= LVL1_ERROR_PATTERN_IN(18) or mult_trg_found; -- multiple timing triggers
next_error_pattern(17) <= LVL1_ERROR_PATTERN_IN(17) or invalid_trg; -- timing trigger missing
next_error_pattern(16) <= LVL1_ERROR_PATTERN_IN(16) or (not trg_num_match); -- trigger counter mismatch