bench/common: add progress to load_rom.

This commit is contained in:
Florent Kermarrec 2020-12-10 19:22:46 +01:00
parent a87c468afa
commit 596615a238
1 changed files with 2 additions and 0 deletions

View File

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