From: Florent Kermarrec Date: Sat, 21 Jun 2014 17:06:47 +0000 (+0200) Subject: fix bit inversion on CSV/PY exports X-Git-Tag: 24jan2021_ls180~2575^2~69 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f9bc5ad6e6bad58d0ddbe64154c3004b5bf941f;p=litex.git fix bit inversion on CSV/PY exports --- diff --git a/miscope/host/dump.py b/miscope/host/dump.py index 8d9366e9..eef6e057 100644 --- a/miscope/host/dump.py +++ b/miscope/host/dump.py @@ -21,7 +21,7 @@ def get_bits(values, width, low, high=None): t = t[low] else: t = t[low:high] - t = t[::1] + t = t[::-1] t = int(t,2) r.append(t) return r @@ -89,7 +89,7 @@ class Var: try : if self.values[cnt+1] != self.val: r += "b" - r += dec2bin(self.values[cnt+1], self.width)[::-1] + r += dec2bin(self.values[cnt+1], self.width) r += " " r += self.vcd_id r += "\n"