ipv4: Implement tx_ok_stb

This commit is contained in:
Markus Koch 2025-09-02 09:31:38 +02:00
parent 7379df7b74
commit 02a00e875d

View File

@ -174,11 +174,13 @@ begin
ipv4_out.tx_data_ack <= '0'; ipv4_out.tx_data_ack <= '0';
arp_in.arp_query_stb <= '0'; arp_in.arp_query_stb <= '0';
ipv4_out.tx_err_stb <= '0'; ipv4_out.tx_err_stb <= '0';
ipv4_out.tx_ok_stb <= '0';
elsif rising_edge(clk) then elsif rising_edge(clk) then
arp_in.arp_query_stb <= '0'; arp_in.arp_query_stb <= '0';
ipv4_out.tx_data_ack <= '0'; ipv4_out.tx_data_ack <= '0';
ipv4_out.tx_err_stb <= '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 (ethernet_ii_out.tx_data_ack = '1') or (state = CALC_CKS) then
if byte_cnt > 0 then if byte_cnt > 0 then
@ -233,6 +235,7 @@ begin
ipv4_out.tx_data_ack <= '1'; ipv4_out.tx_data_ack <= '1';
if not ipv4_in.tx_en then if not ipv4_in.tx_en then
state <= IDLE; state <= IDLE;
ipv4_out.tx_ok_stb <= '1';
end if; end if;
end if; end if;
end case; end case;