mirror of https://github.com/YosysHQ/picorv32.git
Bugfix in hex8tohex32.py
This commit is contained in:
parent
aa25e426be
commit
014b2c6f09
|
@ -25,9 +25,8 @@ for line in fileinput.input():
|
||||||
data.append(0)
|
data.append(0)
|
||||||
ptr -= 1
|
ptr -= 1
|
||||||
else:
|
else:
|
||||||
while ptr < addr:
|
while ptr + len(data) < addr:
|
||||||
data.append(0)
|
data.append(0)
|
||||||
ptr += 1
|
|
||||||
else:
|
else:
|
||||||
data += [int(tok, 16) for tok in line.split()]
|
data += [int(tok, 16) for tok in line.split()]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue