mac+phy: Initialize all required variables
This commit is contained in:
parent
37714d5c2d
commit
76eaff20fd
@ -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';
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user