2018-05-28 17:12:47 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2018-09-23 04:36:19 -04:00
|
|
|
from litex import RemoteClient
|
2015-11-16 18:23:51 -05:00
|
|
|
|
|
|
|
wb = RemoteClient()
|
|
|
|
wb.open()
|
|
|
|
|
|
|
|
# # #
|
|
|
|
|
2017-06-22 11:56:06 -04:00
|
|
|
fpga_id = ""
|
|
|
|
for i in range(256):
|
|
|
|
c = chr(wb.read(wb.bases.identifier_mem + 4*i) & 0xff)
|
|
|
|
fpga_id += c
|
|
|
|
if c == "\0":
|
|
|
|
break
|
|
|
|
print(fpga_id)
|
2015-11-16 18:23:51 -05:00
|
|
|
|
|
|
|
# # #
|
|
|
|
|
|
|
|
wb.close()
|