frontend/etherbone: Add assert on buffer_depth to prevent miss-configuration.

This commit is contained in:
Florent Kermarrec 2022-04-08 09:27:52 +02:00
parent 4cd0a99187
commit bc9162d578
1 changed files with 2 additions and 0 deletions

View File

@ -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,