ipv4: Implement tx_ok_stb
This commit is contained in:
parent
7379df7b74
commit
02a00e875d
@ -174,11 +174,13 @@ begin
|
||||
ipv4_out.tx_data_ack <= '0';
|
||||
arp_in.arp_query_stb <= '0';
|
||||
ipv4_out.tx_err_stb <= '0';
|
||||
ipv4_out.tx_ok_stb <= '0';
|
||||
|
||||
elsif rising_edge(clk) then
|
||||
arp_in.arp_query_stb <= '0';
|
||||
ipv4_out.tx_data_ack <= '0';
|
||||
ipv4_out.tx_err_stb <= '0';
|
||||
ipv4_out.tx_ok_stb <= '0';
|
||||
|
||||
if (ethernet_ii_out.tx_data_ack = '1') or (state = CALC_CKS) then
|
||||
if byte_cnt > 0 then
|
||||
@ -232,7 +234,8 @@ begin
|
||||
sr(sr'low) <= ipv4_in.tx_data;
|
||||
ipv4_out.tx_data_ack <= '1';
|
||||
if not ipv4_in.tx_en then
|
||||
state <= IDLE;
|
||||
state <= IDLE;
|
||||
ipv4_out.tx_ok_stb <= '1';
|
||||
end if;
|
||||
end if;
|
||||
end case;
|
||||
|
Loading…
x
Reference in New Issue
Block a user