From: Florent Kermarrec Date: Tue, 17 Mar 2015 15:01:12 +0000 (+0100) Subject: LiteXXX cores: fix frequency print in test/test_regs.py X-Git-Tag: 24jan2021_ls180~2479 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a266deb58ed10357a5a0c4b4255965ddc2f077e0;p=litex.git LiteXXX cores: fix frequency print in test/test_regs.py --- diff --git a/misoclib/com/liteeth/example_designs/test/test_regs.py b/misoclib/com/liteeth/example_designs/test/test_regs.py index 3e41821f..ea8767ac 100644 --- a/misoclib/com/liteeth/example_designs/test/test_regs.py +++ b/misoclib/com/liteeth/example_designs/test/test_regs.py @@ -4,7 +4,7 @@ def main(wb): ### print("sysid : 0x{:04x}".format(regs.identifier_sysid.read())) print("revision : 0x{:04x}".format(regs.identifier_revision.read())) - print("frequency : 0x{:04x}MHz".format(int(regs.identifier_frequency.read()/1000000))) + print("frequency : {}MHz".format(int(regs.identifier_frequency.read()/1000000))) SRAM_BASE = 0x02000000 wb.write(SRAM_BASE, [i for i in range(64)]) print(wb.read(SRAM_BASE, 64)) diff --git a/misoclib/mem/litesata/example_designs/test/test_regs.py b/misoclib/mem/litesata/example_designs/test/test_regs.py index eb30efbf..07ee4915 100644 --- a/misoclib/mem/litesata/example_designs/test/test_regs.py +++ b/misoclib/mem/litesata/example_designs/test/test_regs.py @@ -4,6 +4,6 @@ def main(wb): ### print("sysid : 0x{:04x}".format(regs.identifier_sysid.read())) print("revision : 0x{:04x}".format(regs.identifier_revision.read())) - print("frequency : 0x{:04x}MHz".format(int(regs.identifier_frequency.read()/1000000))) + print("frequency : {}MHz".format(int(regs.identifier_frequency.read()/1000000))) ### wb.close() diff --git a/misoclib/tools/litescope/example_designs/test/test_regs.py b/misoclib/tools/litescope/example_designs/test/test_regs.py index eb30efbf..07ee4915 100644 --- a/misoclib/tools/litescope/example_designs/test/test_regs.py +++ b/misoclib/tools/litescope/example_designs/test/test_regs.py @@ -4,6 +4,6 @@ def main(wb): ### print("sysid : 0x{:04x}".format(regs.identifier_sysid.read())) print("revision : 0x{:04x}".format(regs.identifier_revision.read())) - print("frequency : 0x{:04x}MHz".format(int(regs.identifier_frequency.read()/1000000))) + print("frequency : {}MHz".format(int(regs.identifier_frequency.read()/1000000))) ### wb.close()