Skip to content

Commit 7c058a5

Browse files
committedMar 3, 2015
com/spi: use .format in tb
1 parent 0716dad commit 7c058a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎misoclib/com/spi/test/spi_master_tb.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def gen_simulation(self, selfp):
7777
yield
7878
self.spi_slave.set_miso(0x123457)
7979
yield from spi_access(selfp, 8, 0x123457)
80-
print("%08x" %self.spi_slave.get_mosi())
81-
print("%08x" %selfp.spi_master._miso.status)
80+
print("{:08x}".format(self.spi_slave.get_mosi()))
81+
print("{:08x}".format(selfp.spi_master._miso.status))
8282

8383
if __name__ == "__main__":
8484
run_simulation(TB(), ncycles=1000, vcd_name="my.vcd", keep_files=True)

0 commit comments

Comments
 (0)
Please sign in to comment.