From 073acdd2ff1eb7cd8d30146ceaa05beb0edd4d12 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 9 Apr 2010 10:15:15 +0000 Subject: [PATCH] - packet size reduced by 4 if fcs-check is enabled Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@898 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/emac/src/emac_rx.vhd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/emac/src/emac_rx.vhd b/lib/emac/src/emac_rx.vhd index 918635b..3c1ef2b 100644 --- a/lib/emac/src/emac_rx.vhd +++ b/lib/emac/src/emac_rx.vhd @@ -267,7 +267,11 @@ byte_counter: begin if rising_edge(mii_rx_clk) then if byte_count_rst = '1' then - byte_count <= (others => '0'); + if fcs_chk_en = '0' then + byte_count <= to_unsigned(0, RAM_ADDR_WIDTH); + else + byte_count <= unsigned(to_signed(-4, RAM_ADDR_WIDTH)); + end if; elsif sipo32_en = '1' and sipo32_din_vld = '1' then byte_count <= byte_count + 1; end if;