From: hadeshyp Date: Thu, 10 Jul 2008 13:10:52 +0000 (+0000) Subject: corrected error in med_tlk, Jan X-Git-Tag: oldGBE~546 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=629fefa5b6b25411cae6689ee7236a522cb1755e;p=trbnet.git corrected error in med_tlk, Jan --- diff --git a/trb_net16_med_tlk.vhd b/trb_net16_med_tlk.vhd index 73f002a..a6d0bfc 100644 --- a/trb_net16_med_tlk.vhd +++ b/trb_net16_med_tlk.vhd @@ -200,6 +200,8 @@ begin STAT(56 downto 55) <= fifo_din_a(17 downto 16); STAT(59) <= TLK_CLK_neg; STAT(60) <= fifo_wr_en_m; + STAT(61) <= reset_packet_num; + STAT(63 downto 62) <= resync_counter; --STAT(63 downto 57) <= (others => '0'); @@ -230,8 +232,8 @@ begin if rising_edge(CLK) then buf_STAT_OP(15) <= '0'; reset_packet_num <= '0'; - if fifo_wr_en_a = '1' then - if fifo_din_a(7 downto 0) = x"7F" then + if buf_MED_DATAREADY_OUT = '1' then + if fifo_dout_a(7 downto 0) = x"7F" then resync_counter <= resync_counter + 1; else resync_counter <= "00";