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
|
2023-01-24 12:04:56 +00:00
|
|
|
from m1n1.hw.dart import DART
|
2021-05-29 18:58:55 +00:00
|
|
|
|
|
|
|
if len(sys.argv) > 1:
|
2022-02-19 10:06:38 +00:00
|
|
|
dart_name = sys.argv[1]
|
2021-05-29 18:58:55 +00:00
|
|
|
else:
|
2022-02-19 10:06:38 +00:00
|
|
|
dart_name = "dart-disp0"
|
|
|
|
|
2023-01-24 12:04:56 +00:00
|
|
|
dart = DART.from_adt(u, "arm-io/" + dart_name)
|
|
|
|
dart.dump_all()
|
|
|
|
dart.dart.regs.dump_regs()
|