Skip to content

Commit af2c02a

Browse files
committed
A bug of _make_img is fixed.
1 parent 9e7372b commit af2c02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

veriloggen/types/axi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ def __init__(self, m, name, clk, rst,
14311431
@staticmethod
14321432
def _make_img(filename, size, width):
14331433
with open(filename, 'w') as f:
1434-
for i in range(size // (width // 8)):
1434+
for i in range(size * 8 // width):
14351435
s = (''.join(['%0', '%d' %
14361436
int(math.ceil(width / 4)), 'x'])) % i
14371437
for w in range(int(math.ceil(width / 4)), 0, -2):

0 commit comments

Comments
 (0)