2021-06-10 10:40:48 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
import sys, pathlib
|
|
|
|
sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
|
|
|
|
|
2021-05-29 18:58:55 +00:00
|
|
|
import struct
|
|
|
|
|
2021-06-10 10:40:48 +00:00
|
|
|
from m1n1.setup import *
|
|
|
|
from m1n1 import asm
|
2021-06-21 16:25:42 +00:00
|
|
|
from m1n1.hw.dart import DART, DARTRegs
|
2021-05-29 18:58:55 +00:00
|
|
|
|
|
|
|
if len(sys.argv) > 1:
|
|
|
|
dart_addr = int(sys.argv[1], 16)
|
|
|
|
else:
|
|
|
|
dart_addr = 0x231304000
|
|
|
|
# disp0 DART
|
|
|
|
# note that there's another range just before this one
|
2021-06-21 16:25:42 +00:00
|
|
|
disp0 = DART(iface, DARTRegs(u, dart_addr))
|
2021-05-29 18:58:55 +00:00
|
|
|
disp0.dump_all()
|
2021-06-21 16:25:42 +00:00
|
|
|
disp0.regs.dump_regs()
|