From 5c939b85efa45e9c4158b39f958ff6f7059fe4db Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 23 Jun 2015 00:25:26 +0200 Subject: [PATCH] liteeth/core/arp: fix table timer (wait_timer adaptation issue) --- misoclib/com/liteeth/core/arp/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, -- 2.30.2