mirror of
https://github.com/enjoy-digital/litescope.git
synced 2025-01-04 09:52:27 -05:00
18 lines
263 B
Python
18 lines
263 B
Python
from litex.soc.tools.remote import RemoteClient
|
|
|
|
wb = RemoteClient()
|
|
wb.open()
|
|
|
|
# # #
|
|
|
|
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)
|
|
|
|
# # #
|
|
|
|
wb.close()
|