tests: $(OBJ)
echo juuh
pypowersim -g audio/mp3/mp3_0.gpr \
+ -s audio/mp3/mp3_0.spr \
-i audio/mp3/mp3_0_apply_window_float.bin
start with "0x" or "0b" for hex or binary
"""
regs = {}
+ allints = True
with open(fname) as f:
for line in f.readlines():
# split line "x : y" into ["x", "y"], remove spaces
reg = convert_to_num(reg)
val = convert_to_num(val)
assert reg not in regs, "duplicate entry %s" % (repr(reg))
+ allints = allints and isinstance(reg, int)
regs[reg] = val
+ # SPRs can be named
+ if not allints:
+ return regs
+
# post-process into a list.
if listqty is None:
return regs