software/dump/common: change variable name for values2x loop (thanks keesj)

This commit is contained in:
Florent Kermarrec 2019-05-28 12:42:22 +02:00
parent 7f20aa477f
commit 2474ce9db2
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Dump:
i = 0 i = 0
for s, n in layout: for s, n in layout:
values = variable[i:i+n] values = variable[i:i+n]
values2x = [values[i//2] for i in range(len(values)*2)] values2x = [values[j//2] for j in range(len(values)*2)]
self.add(DumpVariable(s, n, values2x)) self.add(DumpVariable(s, n, values2x))
i += n i += n
self.add(DumpVariable("scope_clk", 1, [1, 0]*(len(self)//2))) self.add(DumpVariable("scope_clk", 1, [1, 0]*(len(self)//2)))