-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend/etherbone: Add LiteEthLastHandler to LiteEthEtherbonePacketR…
…X for 64-bit data-width support.
- Loading branch information
1 parent
0b5389f
commit b1f916a
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
""" | ||
|
@@ -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", | ||
|