core/dhcp: Add missing TX/RX reset on timeout.

This commit is contained in:
Florent Kermarrec 2023-07-04 18:19:21 +02:00
parent d29d90cd78
commit 70a89eafaa
1 changed files with 2 additions and 0 deletions

View File

@ -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),
]