- 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
This commit is contained in:
2010-04-09 10:15:15 +00:00
parent eba2e4e3b9
commit 073acdd2ff
+5 -1
View File
@@ -267,7 +267,11 @@ byte_counter:
begin begin
if rising_edge(mii_rx_clk) then if rising_edge(mii_rx_clk) then
if byte_count_rst = '1' 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 elsif sipo32_en = '1' and sipo32_din_vld = '1' then
byte_count <= byte_count + 1; byte_count <= byte_count + 1;
end if; end if;