From: hadeshyp Date: Thu, 7 Oct 2010 11:10:29 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: oldGBE~159 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=ed6ed302359d617a65f0e21afb9399675ed43330;p=trbnet.git *** empty log message *** --- diff --git a/media_interfaces/trb_net16_rx_comma_handler.vhd b/media_interfaces/trb_net16_rx_comma_handler.vhd index 3bc3e7f..044cbe7 100644 --- a/media_interfaces/trb_net16_rx_comma_handler.vhd +++ b/media_interfaces/trb_net16_rx_comma_handler.vhd @@ -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;