Skip to content

Commit

Permalink
frontend/etherbone: Add LiteEthLastHandler to LiteEthEtherbonePacketR…
Browse files Browse the repository at this point in the history
…X for 64-bit data-width support.
  • Loading branch information
enjoy-digital committed Sep 12, 2024
1 parent 0b5389f commit b1f916a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions liteeth/frontend/etherbone.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This file is part of LiteEth.
#
# Copyright (c) 2015-2023 Florent Kermarrec <[email protected]>
# Copyright (c) 2015-2024 Florent Kermarrec <[email protected]>
# SPDX-License-Identifier: BSD-2-Clause

"""
Expand All @@ -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 ---------------------------------------------------------------------------------
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b1f916a

Please sign in to comment.