From: Florent Kermarrec Date: Mon, 22 Jun 2015 22:25:26 +0000 (+0200) Subject: liteeth/core/arp: fix table timer (wait_timer adaptation issue) X-Git-Tag: 24jan2021_ls180~2227 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c939b85efa45e9c4158b39f958ff6f7059fe4db;p=litex.git liteeth/core/arp: fix table timer (wait_timer adaptation issue) --- diff --git a/misoclib/com/liteeth/core/arp/__init__.py b/misoclib/com/liteeth/core/arp/__init__.py index 936c34ec..a0f26c5f 100644 --- a/misoclib/com/liteeth/core/arp/__init__.py +++ b/misoclib/com/liteeth/core/arp/__init__.py @@ -195,18 +195,17 @@ class LiteEthARPTable(Module): update.eq(1), NextState("CHECK_TABLE") ) - self.sync += [ + self.sync += \ If(update, cached_valid.eq(1), cached_ip_address.eq(sink.ip_address), cached_mac_address.eq(sink.mac_address), ).Else( - cached_timer.wait.eq(1), If(cached_timer.done, cached_valid.eq(0) ) ) - ] + self.comb += cached_timer.wait.eq(~update) found = Signal() fsm.act("CHECK_TABLE", If(cached_valid,