litex/test/test_regs.py

11 lines
257 B
Python
Raw Normal View History

2014-09-22 06:33:23 -04:00
from config import *
wb.open()
regs = wb.regs
###
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()