mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
9 lines
290 B
Python
9 lines
290 B
Python
def main(wb):
|
|
wb.open()
|
|
regs = wb.regs
|
|
###
|
|
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)))
|
|
###
|
|
wb.close()
|