Commit 596615a2 authored by Florent Kermarrec's avatar Florent Kermarrec

bench/common: add progress to load_rom.

parent a87c468a
......@@ -104,7 +104,9 @@ class BenchController:
rom_data = get_mem_data(filename, "little")
for i, data in enumerate(rom_data):
self.bus.write(self.bus.mems.rom.base + 4*i, data)
print(f"{(i+1)*4}/{len(rom_data*4)} bytes\r", end="")
time.sleep(delay)
print("")
def load_bios(bios_filename):
from litex import RemoteClient
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment