mirror of
https://github.com/enjoy-digital/liteeth.git
synced 2025-01-03 03:43:37 -05:00
64b85e621e
Artix7/Ultrascale 1000BaseX is reused from MiSoC/LiteEthMini, specify it.
26 lines
551 B
Python
26 lines
551 B
Python
#
|
|
# This file is part of LiteEth.
|
|
#
|
|
# Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
from litex import RemoteClient
|
|
|
|
wb = RemoteClient()
|
|
wb.open()
|
|
|
|
# # #
|
|
|
|
identifier = ""
|
|
for i in range(30):
|
|
identifier += chr(wb.read(wb.bases.identifier_mem + 4*(i+1))) # TODO: why + 1?
|
|
print(identifier)
|
|
print("frequency : {}MHz".format(wb.constants.system_clock_frequency/1000000))
|
|
|
|
SRAM_BASE = 0x02000000
|
|
wb.write(SRAM_BASE, [i for i in range(64)])
|
|
print(wb.read(SRAM_BASE, 64))
|
|
|
|
# # #
|
|
|
|
wb.close()
|