From 0f9bc5ad6e6bad58d0ddbe64154c3004b5bf941f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 21 Jun 2014 19:06:47 +0200 Subject: [PATCH] fix bit inversion on CSV/PY exports --- miscope/host/dump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.30.2