]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 7 Oct 2010 11:10:29 +0000 (11:10 +0000)
committerhadeshyp <hadeshyp>
Thu, 7 Oct 2010 11:10:29 +0000 (11:10 +0000)
media_interfaces/trb_net16_rx_comma_handler.vhd

index 3bc3e7f5db692a5adb2c0f36316bb79cd458c68f..044cbe72ecf88f30a870fb9a5facd9f1f8f3c8fc 100644 (file)
@@ -239,9 +239,9 @@ ce_toggle  <= '1' when ( (comma_idle = '1') and (comma_toggle = '1') and (comma_
 CRC_COMMA_POSITION_PROC : process
 begin
        if rising_edge(CLK_IN) then
-               if (RESET_IN = '1') or (c_stx_x = '1') then
+               if (RESET_IN = '1') or (crc_active = '0') or (c_crc_x = '1') then
                        crc_comma_position <= (others => '0');
-               else
+               elsif (data_valid_x = '1') then
                        crc_comma_position <= crc_comma_position + to_unsigned(1, 1);
                end if;
        end if;