implemented
This commit is contained in:
parent
763edd1900
commit
ee5da6812c
15
top.vhd
15
top.vhd
@ -308,12 +308,19 @@ begin -- architecture RTL
|
|||||||
dat_cnt_s <= dat_cnt_s +1;
|
dat_cnt_s <= dat_cnt_s +1;
|
||||||
end if;
|
end if;
|
||||||
if eof = '1' then
|
if eof = '1' then
|
||||||
if crc_valid = '1' then -- or crc_valid = '0' then
|
if crc_valid = '1' then
|
||||||
recv_state <= WAITFORACK;
|
if pkg_type = PIPE_PKG then
|
||||||
|
-- Wait for further frames
|
||||||
|
-- This is also called with any
|
||||||
|
-- undefined TYPEFIELD
|
||||||
|
recv_state <= PRE;
|
||||||
|
elsif pkg_type = FIN_PKG then
|
||||||
fifo_data_avail <= '1';
|
fifo_data_avail <= '1';
|
||||||
--led2 <= '0';
|
recv_state <= WAITFORACK;
|
||||||
else
|
else
|
||||||
--led2 <= '1';
|
recv_state <= PRE;
|
||||||
|
end if;
|
||||||
|
else -- Eth Frame invalid. Discard
|
||||||
fifo_rst <= '1';
|
fifo_rst <= '1';
|
||||||
recv_state <= PRE;
|
recv_state <= PRE;
|
||||||
end if;
|
end if;
|
||||||
|
Loading…
Reference in New Issue
Block a user