From b1f916a44741d3947551f65c2c9cbea8649dd690 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 12 Sep 2024 13:33:39 +0200 Subject: [PATCH] frontend/etherbone: Add LiteEthLastHandler to LiteEthEtherbonePacketRX for 64-bit data-width support. --- liteeth/frontend/etherbone.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index 24a9030..bba0c71 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -1,7 +1,7 @@ # # This file is part of LiteEth. # -# Copyright (c) 2015-2023 Florent Kermarrec +# Copyright (c) 2015-2024 Florent Kermarrec # SPDX-License-Identifier: BSD-2-Clause """ @@ -22,6 +22,8 @@ from liteeth.common import * from litex.soc.interconnect import wishbone from litex.soc.interconnect.packet import * +from liteeth.mac.common import LiteEthLastHandler + from liteeth.packet import Depacketizer, Packetizer # Etherbone Packet --------------------------------------------------------------------------------- @@ -84,8 +86,13 @@ class LiteEthEtherbonePacketRX(LiteXModule): # # # + self.last_handler = LiteEthLastHandler(eth_udp_user_description(32)) + self.depacketizer = depacketizer = LiteEthEtherbonePacketDepacketizer() - self.comb += sink.connect(depacketizer.sink) + self.comb += [ + sink.connect(self.last_handler.sink), + self.last_handler.source.connect(depacketizer.sink), + ] self.fsm = fsm = FSM(reset_state="IDLE") fsm.act("IDLE",