]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
corrected error in med_tlk, Jan
authorhadeshyp <hadeshyp>
Thu, 10 Jul 2008 13:10:52 +0000 (13:10 +0000)
committerhadeshyp <hadeshyp>
Thu, 10 Jul 2008 13:10:52 +0000 (13:10 +0000)
trb_net16_med_tlk.vhd

index 73f002a792bf4cb2753adbeaa30a015b835a80ab..a6d0bfc6cd3de1fec61df0b2463a40b72b5f450d 100644 (file)
@@ -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";