bench: reduce buffer_depth/burst_size to 128 (maximum supported by Etherbone protocol is 255).

This commit is contained in:
Florent Kermarrec 2020-11-25 09:13:23 +01:00
parent f97f6b0635
commit c3e1dad289
4 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class BenchSoC(SoCCore):
pads = self.platform.request("eth"), pads = self.platform.request("eth"),
with_hw_init_reset = False) with_hw_init_reset = False)
self.add_csr("ethphy") self.add_csr("ethphy")
self.add_etherbone(phy=self.ethphy, buffer_depth=256) self.add_etherbone(phy=self.ethphy, buffer_depth=128)
# SRAM ------------------------------------------------------------------------------------- # SRAM -------------------------------------------------------------------------------------
self.add_ram("sram", 0x20000000, 0x1000) self.add_ram("sram", 0x20000000, 0x1000)

View File

@ -43,7 +43,7 @@ class BenchSoC(SoCCore):
tx_delay = 0e-9, tx_delay = 0e-9,
with_hw_init_reset = False) with_hw_init_reset = False)
self.add_csr("ethphy") self.add_csr("ethphy")
self.add_etherbone(phy=self.ethphy, buffer_depth=256) self.add_etherbone(phy=self.ethphy, buffer_depth=128)
# SRAM ------------------------------------------------------------------------------------- # SRAM -------------------------------------------------------------------------------------
self.add_ram("sram", 0x20000000, 0x1000) self.add_ram("sram", 0x20000000, 0x1000)

View File

@ -42,7 +42,7 @@ class BenchSoC(SoCCore):
pads = self.platform.request("eth"), pads = self.platform.request("eth"),
with_hw_init_reset = False) with_hw_init_reset = False)
self.add_csr("ethphy") self.add_csr("ethphy")
self.add_etherbone(phy=self.ethphy, buffer_depth=256) self.add_etherbone(phy=self.ethphy, buffer_depth=128)
# SRAM ------------------------------------------------------------------------------------- # SRAM -------------------------------------------------------------------------------------
self.add_ram("sram", 0x20000000, 0x1000) self.add_ram("sram", 0x20000000, 0x1000)

View File

@ -105,7 +105,7 @@ def speed_test(port):
wb.open() wb.open()
test_size = 16*KiB test_size = 16*KiB
burst_size = 255 # FIXME: Use 256, fix Etherbone encoding. burst_size = 128
print("Testing write speed... ", end="") print("Testing write speed... ", end="")
start = time.time() start = time.time()