From 596615a2386c490942528ceae9287e9865263cbc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 10 Dec 2020 19:22:46 +0100 Subject: [PATCH] bench/common: add progress to load_rom. --- bench/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bench/common.py b/bench/common.py index 4381eed..fe4cf63 100644 --- a/bench/common.py +++ b/bench/common.py @@ -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