Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
25f8bb6eaThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env python3
import sys
f = open(sys.argv[1])
regs = []
found_regs = False
for l in f:
if found_regs:
try:
regs.append(int(l, 16))
except:
break
else:
found_regs = "Register contents:" in l
assert(len(regs) == 32)
# Actual test:
assert(regs[9] == 6)
print("Test PASSED.")