litex/misoclib/mem/litesata/example_designs/test/test_regs.py

10 lines
312 B
Python
Raw Normal View History

def main(wb):
wb.open()
regs = wb.regs
2015-04-13 09:55:22 -04:00
# # #
print("sysid : 0x{:04x}".format(regs.identifier_sysid.read()))
print("revision : 0x{:04x}".format(regs.identifier_revision.read()))
print("frequency : {}MHz".format(int(regs.identifier_frequency.read()/1000000)))
2015-04-13 09:55:22 -04:00
# # #
wb.close()