diff --git a/trashernet/trashernet_mac.vhd b/trashernet/trashernet_mac.vhd index 0dc4649..1807d03 100644 --- a/trashernet/trashernet_mac.vhd +++ b/trashernet/trashernet_mac.vhd @@ -79,6 +79,7 @@ begin mac_out.rx_mac_crc_ok <= '0'; mac_out.rx_mac_header_rcv <= '0'; crc_clear <= '0'; + state <= HEAD; elsif rising_edge(clk) then mac_out.rx_mac_valid <= '0'; @@ -168,6 +169,9 @@ begin begin if rst then mac_out.tx_mac_data_ack <= '0'; + tx_state <= IDLE; + sr_cnt <= 0; + byte_cnt <= 0; elsif rising_edge(clk) then mac_out.tx_mac_data_ack <= '0'; diff --git a/trashernet/trashernet_phy.vhd b/trashernet/trashernet_phy.vhd index 333c459..e0f839d 100644 --- a/trashernet/trashernet_phy.vhd +++ b/trashernet/trashernet_phy.vhd @@ -319,6 +319,8 @@ begin phy_out.tx_data_ack <= '0'; tx_stb_cnt <= TX_STB_CNT_MAX; tx_mode <= OFF; + tx_state <= IDLE; + bit_cnt <= 0; go_idle; elsif rising_edge(clk) then