From 7b4429e814573885035e6ee0d0a7ea7da1c767f5 Mon Sep 17 00:00:00 2001 From: Matthias Breithaupt Date: Sun, 18 Aug 2024 17:20:05 +0200 Subject: [PATCH] Fix etherbone reads Since https://github.com/enjoy-digital/litex/pull/1999, etherbone reads might result in garbage being output. This is caused by `be` not being set during the read. Fixes https://github.com/enjoy-digital/litex/issues/2031 Signed-off-by: Matthias Breithaupt --- liteeth/frontend/etherbone.py | 1 + 1 file changed, 1 insertion(+) diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index bd560f9..24a9030 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -251,6 +251,7 @@ class LiteEthEtherboneRecordReceiver(LiteXModule): source.last.eq(count == fifo.source.rcount-1), source.last_be.eq(source.last << 3), source.count.eq(fifo.source.rcount), + source.be.eq(fifo.source.byte_enable), source.base_addr.eq(base_addr), source.addr.eq(fifo.source.data[2:]), fifo.source.ready.eq(source.ready),