From 4afd325fc642072cabdb47fd497d2cb934f2cd1c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 3 Jul 2023 18:06:48 +0200 Subject: [PATCH] core/dhcp: Shorten offered_ip_address to ip_address. --- liteeth/core/dhcp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liteeth/core/dhcp.py b/liteeth/core/dhcp.py index d5bd648..32bdb7e 100644 --- a/liteeth/core/dhcp.py +++ b/liteeth/core/dhcp.py @@ -547,8 +547,8 @@ class LiteEthDHCP(LiteXModule): self.timeout = Signal() # o # Parameters - self.mac_address = Signal(48) # i - self.offered_ip_address = Signal(48) # o + self.mac_address = Signal(48) # i + self.ip_address = Signal(48) # o # # # @@ -615,7 +615,7 @@ class LiteEthDHCP(LiteXModule): fsm.act("RECEIVE-ACK", rx.ack.eq(1), If(rx.present & (rx.type == DHCP_RX_ACK), - NextValue(self.offered_ip_address, offered_ip_address), + NextValue(self.ip_address, offered_ip_address), NextState("IDLE") ) )