From 70a89eafaa9327135d081b59628f37bc667be6db Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 4 Jul 2023 18:19:21 +0200 Subject: [PATCH] core/dhcp: Add missing TX/RX reset on timeout. --- liteeth/core/dhcp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liteeth/core/dhcp.py b/liteeth/core/dhcp.py index 32bdb7e..37620fd 100644 --- a/liteeth/core/dhcp.py +++ b/liteeth/core/dhcp.py @@ -560,6 +560,7 @@ class LiteEthDHCP(LiteXModule): # DHCP TX. self.tx = tx = ResetInserter()(LiteEthDHCPTX(udp_port)) self.comb += [ + tx.reset.eq(self.timeout), tx.mac_address.eq(self.mac_address), tx.transaction_id.eq(transaction_id), ] @@ -567,6 +568,7 @@ class LiteEthDHCP(LiteXModule): # DHCP RX. self.rx = rx = ResetInserter()(LiteEthDHCPRX(udp_port)) self.comb += [ + rx.reset.eq(self.timeout), rx.mac_address.eq(self.mac_address), rx.transaction_id.eq(transaction_id), ]