implemented
This commit is contained in:
parent
763edd1900
commit
ee5da6812c
19
top.vhd
19
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
|
||||||
fifo_data_avail <= '1';
|
-- Wait for further frames
|
||||||
--led2 <= '0';
|
-- This is also called with any
|
||||||
else
|
-- undefined TYPEFIELD
|
||||||
--led2 <= '1';
|
recv_state <= PRE;
|
||||||
|
elsif pkg_type = FIN_PKG then
|
||||||
|
fifo_data_avail <= '1';
|
||||||
|
recv_state <= WAITFORACK;
|
||||||
|
else
|
||||||
|
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