From 38f96cdc63729cb912182da78966f62a68ce2b6c Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 28 Aug 2021 14:25:23 +0200 Subject: [PATCH] phy: rx: Come up in disconnected state after reset --- trashernet/trashernet_phy.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trashernet/trashernet_phy.vhd b/trashernet/trashernet_phy.vhd index 8efc810..b809999 100644 --- a/trashernet/trashernet_phy.vhd +++ b/trashernet/trashernet_phy.vhd @@ -238,7 +238,7 @@ begin nlp_timeout_p : process(clk, rst) is begin if rst then - nlp_timeout_cnt <= NLP_TIMEOUT_CNT_MAX; + nlp_timeout_cnt <= 0; elsif rising_edge(clk) then if rx_edge then -- Technically, we should use only the rising edge here, but a project called `trashernet` probably won't mind ;) nlp_timeout_cnt <= NLP_TIMEOUT_CNT_MAX;