From 90efa87edc12df80a9c734d2630cba982b53dc60 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Fri, 2 Mar 2007 14:41:16 +0000 Subject: [PATCH] updated trb_net_med_13bit_slow, Jan --- trb_net_med_13bit_slow.vhd | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/trb_net_med_13bit_slow.vhd b/trb_net_med_13bit_slow.vhd index aa9e22c..b5527de 100755 --- a/trb_net_med_13bit_slow.vhd +++ b/trb_net_med_13bit_slow.vhd @@ -494,20 +494,17 @@ MED2INT_fsm: process(MED_PARITY_IN,MED2INT_state,CLK,MED_DATA_IN,DAT_MED2INT, when "0110" => next_INT_DATA_OUT <= DAT_MED2INT(55 downto 0); next_RECV_STAT <= DAT_MED2INT(64 downto 56); - if INT_READ_IN = '1' then - next_MED2INT_state <= "1110"; + next_INT_DATAREADY_OUT <= '1'; + next_MED2INT_state <= "0111"; + when "0111" => + if buf_INT_DATAREADY_OUT = '1' and INT_READ_IN = '1' then + next_MED2INT_state <= "0000"; next_INT_DATAREADY_OUT <= '0'; + next_INT_DATA_OUT <= (others => '0'); else - next_MED2INT_state <= "0110"; + next_MED2INT_state <= "0111"; next_INT_DATAREADY_OUT <= '1'; - end if; - when "1110" => - next_INT_DATA_OUT <= (others => '0'); - next_INT_DATAREADY_OUT <= '0'; - if MED_TRANSMISSION_CLK_IN = '0' then - next_MED2INT_state <= "0000"; - else - next_MED2INT_state <= "1110"; + next_INT_DATA_OUT <= buf_INT_DATA_OUT; end if; when others => next_MED2INT_state <= "0000"; -- 2.43.0