);
port(
RESET : in std_logic;
+ RESET_STATS_IN : in std_logic;
CLOCK : in std_logic;
--Timing Trigger
LVL1_TIMING_TRG_IN : in std_logic; --raw trigger signal input, min. 80 ns or strobe, see generics
-- gk 29.09.10
WRONG_POLAR_PROC : process(CLOCK)
begin
- if (RESET = '1') then
+ if (RESET = '1') or (RESET_STATS_IN = '1') then
wrong_polarity <= '0';
elsif (trigger_length > 100) then
wrong_polarity <= '1';
-- Status bits
---------------------------------------------------------------------------
+-- gk 29.09.10
STAT_PROC : process(CLOCK)
begin
if rising_edge(CLOCK) then
- if (RESET = '1') then
+ if (RESET = '1') or (RESET_STATS_IN = '1') then
STATUS_OUT <= (others => '0');
elsif (val_trg = '1') or (invalid_trg = '1') then
STATUS_OUT(63 downto 48) <= std_logic_vector(trigger_length);
STAT_CTR_PROC : process(CLOCK)
begin
if rising_edge(CLOCK) then
- if (RESET = '1') then
+ if (RESET = '1') or (RESET_STATS_IN = '1') then
multiple_ctr <= (others => '0');
missing_ctr <= (others => '0');
spikes_ctr <= (others => '0');