litex/test/test_regs.py
Florent Kermarrec 996a56c335 code clean up
2015-02-09 11:02:08 +01:00

11 lines
285 B
Python

from config import *
wb.open()
regs = wb.regs
###
regs.phy_crg_reset.write(1)
print("sysid : 0x%04x" %regs.identifier_sysid.read())
print("revision : 0x%04x" %regs.identifier_revision.read())
print("frequency : %d MHz" %(regs.identifier_frequency.read()/1000000))
###
wb.close()