From 39fe055c19281ec67659ed1d318bb21b8080a48e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 25 Jul 2023 14:13:02 +0200 Subject: [PATCH] core/arp: Allow clk_freq to be passed as float. --- liteeth/core/arp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/core/arp.py b/liteeth/core/arp.py index 075b2d3..b100258 100644 --- a/liteeth/core/arp.py +++ b/liteeth/core/arp.py @@ -186,7 +186,7 @@ class LiteEthARPTable(LiteXModule): request_ip_address.eq(request.ip_address) ) - request_timer = WaitTimer(clk_freq//10) + request_timer = WaitTimer(int(clk_freq//10)) self.submodules += request_timer request_counter = Signal(max=max_requests) request_counter_reset = Signal() @@ -206,7 +206,7 @@ class LiteEthARPTable(LiteXModule): cached_valid = Signal() cached_ip_address = Signal(32, reset_less=True) cached_mac_address = Signal(48, reset_less=True) - cached_timer = WaitTimer(clk_freq*10) + cached_timer = WaitTimer(int(clk_freq*10)) self.submodules += cached_timer self.fsm = fsm = FSM(reset_state="IDLE")