fix bit inversion on CSV/PY exports
This commit is contained in:
parent
074a12b444
commit
0f9bc5ad6e
|
@ -21,7 +21,7 @@ def get_bits(values, width, low, high=None):
|
||||||
t = t[low]
|
t = t[low]
|
||||||
else:
|
else:
|
||||||
t = t[low:high]
|
t = t[low:high]
|
||||||
t = t[::1]
|
t = t[::-1]
|
||||||
t = int(t,2)
|
t = int(t,2)
|
||||||
r.append(t)
|
r.append(t)
|
||||||
return r
|
return r
|
||||||
|
@ -89,7 +89,7 @@ class Var:
|
||||||
try :
|
try :
|
||||||
if self.values[cnt+1] != self.val:
|
if self.values[cnt+1] != self.val:
|
||||||
r += "b"
|
r += "b"
|
||||||
r += dec2bin(self.values[cnt+1], self.width)[::-1]
|
r += dec2bin(self.values[cnt+1], self.width)
|
||||||
r += " "
|
r += " "
|
||||||
r += self.vcd_id
|
r += self.vcd_id
|
||||||
r += "\n"
|
r += "\n"
|
||||||
|
|
Loading…
Reference in New Issue