Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7d2427ddfThis 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[8] == 4181)
print("Test PASSED.")