Skip to content

Commit 07a763d

Browse files
m-tempandreaskurth
authored andcommitted
Enhance status print while programming the FPGA
Flush the print buffer to instantly print "Connecting and loading FPGA..." Without "flush = True" this message is only printed after the next print statement, which is after the FPGA is programmed. Signed-off-by: Michael Tempelmeier <[email protected]>
1 parent 11d590f commit 07a763d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cw/util/device.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def initialize_fpga(self, fpga, bitstream, pll_frequency):
7676
# bitstream.
7777
# TODO: We should have this in the CLI.
7878
force_programming = False
79-
print('Connecting and loading FPGA... ', end='')
79+
print('Connecting and loading FPGA... ', end='', flush = True)
8080

8181
# Runtime patch fpga.fpga.FPGAProgram to detect if it was actually called.
8282
# Note: This is fragile and may break but it is easy to miss that the FPGA

0 commit comments

Comments
 (0)