mac+phy: Initialize all required variables

This commit is contained in:
Markus Koch 2022-01-22 20:46:50 +01:00
parent 37714d5c2d
commit 76eaff20fd
2 changed files with 6 additions and 0 deletions

View File

@ -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';

View File

@ -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