signal toc_ce : std_logic; -- count enable for TRG/LVL1 timeout
signal next_toc_ce : std_logic;
signal toc_save : std_logic; -- count enable for TRG/LVL1 timeout
-signal next_toc_save : std_logic;
signal toc_rst : std_logic; -- reset for timout
signal next_toc_rst : std_logic;
signal trg_rel : std_logic; -- release LVL1 channel
CURRENT_STATE <= NEXT_STATE;
toc_ce <= next_toc_ce;
toc_rst <= next_toc_rst;
- toc_save <= next_toc_save;
trg_rel <= next_trg_rel;
trg_rst <= next_trg_rst;
val_trg <= next_val_trg;
NEXT_STATE <= IDLE; -- avoid latches
next_toc_ce <= '0';
next_toc_rst <= '0';
- next_toc_save <= toc_save;
next_trg_rel <= '0';
next_trg_rst <= '0';
next_val_trg <= '0';
next_spurious_trg <= '1';
end if;
-- was commented out
- elsif( timeout_found = '1' ) then
+ --elsif( timeout_found = '1' ) then
-- LVL1 did not arrive in time
- NEXT_STATE <= TRGFND; --TOCFND; -- gk 29.09.10
- next_toc_save <= '1';
- next_toc_rst <= '1';
+ --NEXT_STATE <= TRGFND; --TOCFND; -- gk 29.09.10
+ --next_toc_rst <= '1'; -- gk 29.09.10
--next_trg_rst <= '1'; -- gk 21.09.10
--next_invalid_trg <= '1';
----------------------------