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 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 @@ def __init__(self): # # # + 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",