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');
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";