From bc9162d578bec79003c5ce9bbf44cb14c9a25a0d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 8 Apr 2022 09:27:52 +0200 Subject: [PATCH] frontend/etherbone: Add assert on buffer_depth to prevent miss-configuration. --- liteeth/frontend/etherbone.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index 47568eb..29a888f 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -188,6 +188,7 @@ class LiteEthEtherboneRecordReceiver(Module): # # # + assert buffer_depth <= 256 self.submodules.fifo = fifo = PacketFIFO(eth_etherbone_record_description(32), payload_depth = buffer_depth, param_depth = 1, @@ -266,6 +267,7 @@ class LiteEthEtherboneRecordSender(Module): # # # + assert buffer_depth <= 256 self.submodules.fifo = fifo = PacketFIFO(eth_etherbone_mmap_description(32), payload_depth = buffer_depth, param_depth = 1,